mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 15:45:04 -04:00
fix RawMemoryWrapper serialisation to json, reported by b1rdG
This commit is contained in:
parent
d52d9c909b
commit
f186422833
1 changed files with 2 additions and 1 deletions
|
@ -599,7 +599,8 @@ void RsTypeSerializer::RawMemoryWrapper::serial_process(
|
||||||
RsBase64::encode(first, second, encodedValue, true, false);
|
RsBase64::encode(first, second, encodedValue, true, false);
|
||||||
ctx.mJson.SetString(
|
ctx.mJson.SetString(
|
||||||
encodedValue.data(),
|
encodedValue.data(),
|
||||||
static_cast<rapidjson::SizeType>(encodedValue.length()) );
|
static_cast<rapidjson::SizeType>(encodedValue.length()),
|
||||||
|
ctx.mJson.GetAllocator());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case RsGenericSerializer::FROM_JSON:
|
case RsGenericSerializer::FROM_JSON:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue