diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-05-18 14:16:38 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-05-18 14:17:23 +0000 |
commit | 5ed37ba83cb7b8009eec1d8f9fc2525541819ff3 (patch) | |
tree | b0ade4ef6ae41fd7f25d8f14a80773a28331f074 /src/serialization/json_object.cpp | |
parent | Merge pull request #6510 (diff) | |
download | monero-5ed37ba83cb7b8009eec1d8f9fc2525541819ff3.tar.xz |
serialization: fix bad rapidjson api usage
Diffstat (limited to '')
-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(); } |