diff options
-rw-r--r-- | client-test.c | 2 |
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; |