aboutsummaryrefslogtreecommitdiff
path: root/src/serialization
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-05-18 14:16:38 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-05-19 12:23:03 +0000
commit4291344f80f69f1b0fa237b559fdbc59c18503f7 (patch)
tree2bdf816da85306eb3ca15341e65d51da74f76ceb /src/serialization
parentMerge pull request #6515 (diff)
downloadmonero-4291344f80f69f1b0fa237b559fdbc59c18503f7.tar.xz
serialization: fix bad rapidjson api usage
Diffstat (limited to 'src/serialization')
-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();
}