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

ircd: Minor cleanup.

This commit is contained in:
Jason Volk 2019-06-05 12:57:10 -07:00
parent cde857beb6
commit 868d96b89d

View file

@ -151,7 +151,7 @@ struct ircd::strlcpy
{}
strlcpy(const mutable_buffer &dst, const string_view &src)
:strlcpy(data(dst), src, size(dst))
:strlcpy{data(dst), src, size(dst)}
{}
};
@ -185,11 +185,11 @@ struct ircd::strlcat
{}
strlcat(char *const &dst, const char *const &src, const size_t &max)
:strlcat(dst, string_view{src, ::strnlen(src, max)}, max)
:strlcat{dst, string_view{src, ::strnlen(src, max)}, max}
{}
strlcat(const mutable_buffer &dst, const string_view &src)
:strlcat(data(dst), src, size(dst))
:strlcat{data(dst), src, size(dst)}
{}
};