0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::json: Fix unadjusted serial size for object::member property names.

This commit is contained in:
Jason Volk 2020-10-20 23:11:19 -07:00
parent 8385a63886
commit 59495a74bf

View file

@ -2851,7 +2851,12 @@ ircd::json::stringify(mutable_buffer &buf,
size_t
ircd::json::serialized(const object::member &member)
{
return 1 + size(member.first) + 1 + 1 + serialized(member.second);
const json::value key
{
member.first, json::STRING
};
return serialized(key) + 1 + serialized(member.second);
}
ircd::string_view