diff options
author | June McEnroe <june@causal.agency> | 2020-07-31 23:51:23 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-07-31 23:51:23 -0400 |
commit | 8a91c64edf551c3c05483ec3f5c87e8dc27a3cc5 (patch) | |
tree | cee269932d1d455b2086db9016bae51a196e3867 /client.c | |
parent | Use RAND_bytes instead of arc4random_buf (diff) | |
download | pounce-8a91c64edf551c3c05483ec3f5c87e8dc27a3cc5.tar.gz pounce-8a91c64edf551c3c05483ec3f5c87e8dc27a3cc5.zip |
Use snprintf instead of strlcpy
Diffstat (limited to '')
-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); } |