summary refs log tree commit diff stats
diff options
context:
space:
mode:
authoraabacchus <ben@bvnf.space>2023-05-27 19:27:02 +0100
committeraabacchus <ben@bvnf.space>2023-05-27 19:27:02 +0100
commit50427b7b632ebb13215bd9f1f4cfee1b2202cdf2 (patch)
tree3636c29e0b007a4d770c6e706452e2ca0cc1e5c5
parent23e183268d28a58e763ba81716ddd52d35e65df8 (diff)
downloadcbot-50427b7b632ebb13215bd9f1f4cfee1b2202cdf2.tar.gz
send string length in client-test
-rw-r--r--client-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client-test.c b/client-test.c
index 1a8638d..e3097f7 100644
--- a/client-test.c
+++ b/client-test.c
@@ -22,7 +22,7 @@ main(void) {
 		sizeof(SOCK_PATH) + sizeof(remote.sun_family)) == -1)
 		err(1, "connect");
 	char msg[] = "Hi, test message 1!\n";
-	if (send(s, msg, sizeof(msg), 0) == -1)
+	if (send(s, msg, sizeof(msg)-1, 0) == -1)
 		err(1, "send");
 	close(s);
 	return 0;