about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-24 14:30:12 -0400
committerJune McEnroe <june@causal.agency>2020-07-24 14:30:12 -0400
commit0abce6584e06ad37271f3f2239b146ed73626faa (patch)
treed0f8d105d1cf174561cf65c183be3fea34ca0ce1
parentAdd link to "IRC Suite" post in README (diff)
downloadpounce-0abce6584e06ad37271f3f2239b146ed73626faa.tar.gz
pounce-0abce6584e06ad37271f3f2239b146ed73626faa.zip
Don't use strlcpy in dispatch
So that calico doesn't need any libs even on Linux.
-rw-r--r--dispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dispatch.c b/dispatch.c
index 6b96e97..2db4fe0 100644
--- a/dispatch.c
+++ b/dispatch.c
@@ -293,7 +293,7 @@ int main(int argc, char *argv[]) {
 			}
 
 			struct sockaddr_un addr = { .sun_family = AF_UNIX };
-			strlcpy(addr.sun_path, name, sizeof(addr.sun_path));
+			snprintf(addr.sun_path, sizeof(addr.sun_path), "%s", name);
 
 			int sock = socket(PF_UNIX, SOCK_STREAM, 0);
 			if (sock < 0) err(EX_OSERR, "socket");