0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-09 13:38:55 +02:00

ircd::fmt: Fix constructing cast.

This commit is contained in:
Jason Volk 2020-04-19 03:16:43 -07:00
parent 6943187149
commit 0050e0f7d9

View file

@ -379,7 +379,7 @@ try
// Ensure null termination if out buffer is non-empty.
assert(size(this->out) > 0);
assert(this->out.remaining());
copy(this->out, '\0');
copy(mutable_buffer(this->out), '\0');
}
catch(const std::out_of_range &e)
{