summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-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);
 }