serialization: fix bad rapidjson api usage
This commit is contained in:
parent
309211fd6a
commit
4291344f80
|
@ -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…
Reference in New Issue