0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd: Fix width of string to not assume and case for implicit null.

This commit is contained in:
Jason Volk 2018-07-05 19:05:00 -07:00
parent 7de1c38d0e
commit 0f0ed1ba08

View file

@ -448,7 +448,7 @@ ircd::replace(const string_view &s,
std::string
ircd::u2a(const const_buffer &in)
{
return string(size(in) * 2, [&in]
return string(size(in) * 2 + 1, [&in]
(const mutable_buffer &out)
{
return u2a(out, in);