mirror of
https://github.com/monero-project/monero.git
synced 2025-01-10 04:44:59 +00:00
Merge pull request #6560
4291344
serialization: fix bad rapidjson api usage (moneromooo-monero)
This commit is contained in:
commit
f28026b86f
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ void read_hex(const rapidjson::Value& val, epee::span<std::uint8_t> dest)
|
||||||
throw WRONG_TYPE("string");
|
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();
|
throw BAD_INPUT();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue