serialization: fix bad rapidjson api usage

lite
moneromooo-monero 4 years ago committed by wowario
parent e062e1efe3
commit 4eb2f5c2c8
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -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();
}

Loading…
Cancel
Save