aboutsummaryrefslogtreecommitdiff
path: root/src
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-18 14:17:23 +0000
commit5ed37ba83cb7b8009eec1d8f9fc2525541819ff3 (patch)
treeb0ade4ef6ae41fd7f25d8f14a80773a28331f074 /src
parentMerge pull request #6510 (diff)
downloadmonero-5ed37ba83cb7b8009eec1d8f9fc2525541819ff3.tar.xz
serialization: fix bad rapidjson api usage
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();
}