diff options
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c index 7f9a06a..4f315c8 100644 --- a/client.c +++ b/client.c @@ -428,7 +428,7 @@ static char *snip(char *dst, size_t cap, const char *src, const regex_t *regex) ); if (len >= cap) return NULL; } - len += strlcpy(&dst[len], src, cap - len); + len += snprintf(&dst[len], cap - len, "%s", src); return (len < cap ? dst : NULL); } |