about summary refs log tree commit diff homepage
path: root/client.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-20 16:42:55 -0400
committerJune McEnroe <june@causal.agency>2021-09-20 16:42:55 -0400
commita6441b2e4f3318609752a9204f07b330820fb1b3 (patch)
tree65e998c0f70f5f096dedeebed5209a01684bb0cd /client.c
parentReplace kqueue with poll, remove libutil dependency (diff)
downloadtorus-a6441b2e4f3318609752a9204f07b330820fb1b3.tar.gz
torus-a6441b2e4f3318609752a9204f07b330820fb1b3.zip
Replace strlcpy with snprintf
This removes the last BSD-specific call.
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 dc2c166..a16c682 100644
--- a/client.c
+++ b/client.c
@@ -702,7 +702,7 @@ int main(int argc, char *argv[]) {
 	if (client < 0) err(EX_OSERR, "socket");
 
 	struct sockaddr_un addr = { .sun_family = AF_LOCAL };
-	strlcpy(addr.sun_path, sockPath, sizeof(addr.sun_path));
+	snprintf(addr.sun_path, sizeof(addr.sun_path), "%s", sockPath);
 	int error = connect(client, (struct sockaddr *)&addr, SUN_LEN(&addr));
 	if (error) err(EX_NOINPUT, "%s", sockPath);
 
0June McEnroe 2020-09-09Update litterbox to 1.6June McEnroe 2020-08-23Add scooper portJune McEnroe 2020-08-23Add catsit portJune McEnroe 2020-08-13Update pounce to 1.4p2June McEnroe 2020-08-11Update pounce to 1.4p1June McEnroe 2020-08-10Add litterbox portJune McEnroe 2020-08-10Add missing USES=pkgconfig to pounceJune McEnroe