From 5ed37ba83cb7b8009eec1d8f9fc2525541819ff3 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 18 May 2020 14:16:38 +0000 Subject: serialization: fix bad rapidjson api usage --- src/serialization/json_object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 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(); } -- cgit v1.2.3