aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2020-06-08 14:18:09 -0500
committerluigi1111 <luigi1111w@gmail.com>2020-06-08 14:18:09 -0500
commit445f74c71aeb42e2e551808bf4a90645c19d06c4 (patch)
tree3c7c9b70c05bbc9bb56db32ec3ef4805df5ab96a /src
parentMerge pull request #6553 (diff)
parentserialization: fix bad rapidjson api usage (diff)
downloadmonero-445f74c71aeb42e2e551808bf4a90645c19d06c4.tar.xz
Merge pull request #6556
5ed37ba serialization: fix bad rapidjson api usage (moneromooo-monero)
Diffstat (limited to 'src')
-rw-r--r--src/serialization/json_object.cpp2
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();
}