summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-31 23:51:23 -0400
committerJune McEnroe <june@causal.agency>2020-07-31 23:51:23 -0400
commit8a91c64edf551c3c05483ec3f5c87e8dc27a3cc5 (patch)
treecee269932d1d455b2086db9016bae51a196e3867 /client.c
parentUse RAND_bytes instead of arc4random_buf (diff)
downloadpounce-8a91c64edf551c3c05483ec3f5c87e8dc27a3cc5.tar.gz
pounce-8a91c64edf551c3c05483ec3f5c87e8dc27a3cc5.zip
Use snprintf instead of strlcpy
Diffstat (limited to '')
-rw-r--r--client.c2
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);
 }