mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #6556
5ed37ba
serialization: fix bad rapidjson api usage (moneromooo-monero)
This commit is contained in:
commit
445f74c71a
@ -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
Block a user