mirror of
https://github.com/matrix-construct/construct
synced 2024-12-01 19:22:53 +01:00
ircd: Minor cleanup.
This commit is contained in:
parent
cde857beb6
commit
868d96b89d
1 changed files with 3 additions and 3 deletions
|
@ -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)}
|
||||
{}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue