0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 10:12:39 +01:00

ircd: Use std snprintf() in u2a().

This commit is contained in:
Jason Volk 2018-07-05 18:57:58 -07:00
parent e7ede89884
commit 7de1c38d0e

View file

@ -461,7 +461,7 @@ ircd::u2a(const mutable_buffer &out,
{
char *p(data(out));
for(size_t i(0); i < size(in); ++i, p += 2)
snprintf(p, end(out) - p, "%02x", in[i]);
::snprintf(p, end(out) - p, "%02x", in[i]);
return { data(out), p };
}