diff options
author | aabacchus <ben@bvnf.space> | 2023-05-27 19:27:02 +0100 |
---|---|---|
committer | aabacchus <ben@bvnf.space> | 2023-05-27 19:27:02 +0100 |
commit | 50427b7b632ebb13215bd9f1f4cfee1b2202cdf2 (patch) | |
tree | 3636c29e0b007a4d770c6e706452e2ca0cc1e5c5 /client-test.c | |
parent | 23e183268d28a58e763ba81716ddd52d35e65df8 (diff) | |
download | cbot-50427b7b632ebb13215bd9f1f4cfee1b2202cdf2.tar.gz |
send string length in client-test
Diffstat (limited to 'client-test.c')
-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; |