diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-06-08 14:18:09 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-06-08 14:18:09 -0500 |
commit | 445f74c71aeb42e2e551808bf4a90645c19d06c4 (patch) | |
tree | 3c7c9b70c05bbc9bb56db32ec3ef4805df5ab96a | |
parent | Merge pull request #6553 (diff) | |
parent | serialization: fix bad rapidjson api usage (diff) | |
download | monero-445f74c71aeb42e2e551808bf4a90645c19d06c4.tar.xz |
Merge pull request #6556
5ed37ba serialization: fix bad rapidjson api usage (moneromooo-monero)
-rw-r--r-- | src/serialization/json_object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialization/json_object.cpp b/src/serialization/json_object.cpp index 6228b4bec..5c042aa7b 100644 --- a/src/serialization/json_object.cpp +++ b/src/serialization/json_object.cpp @@ -120,7 +120,7 @@ void read_hex(const rapidjson::Value& val, epee::span<std::uint8_t> dest) throw WRONG_TYPE("string"); } - if (!epee::from_hex::to_buffer(dest, {val.GetString(), val.Size()})) + if (!epee::from_hex::to_buffer(dest, {val.GetString(), val.GetStringLength()})) { throw BAD_INPUT(); } |