summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-09-03 12:18:58 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-09-03 12:18:58 -0400
commitceab64be75a00fd498d1b5955f1e5e94da49a4bf (patch)
tree37d7e59a715c98b9ad325bc9865f536a8ed0b4db
parentc613da7ab3a296b2477b473c178d2d8afd981165 (diff)
nshd-tester: add a comment
-rw-r--r--bin/nshd-tester.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/nshd-tester.c b/bin/nshd-tester.c
index 8667ec0..42398c1 100644
--- a/bin/nshd-tester.c
+++ b/bin/nshd-tester.c
@@ -153,7 +153,7 @@ int main(int argc, char *argv[]) {
while (1) {
union addr client_addr;
socklen_t client_size;
- char buf[4097];
+ char buf[4097]; /* allow for 4 KiB reads, plus an implicit trailing newline */
ssize_t bytes_read = recvfrom(notify_sock, buf, sizeof(buf)-1, 0, &client_addr.gen, &client_size);
if (bytes_read < 1)
error(EXIT_FAILURE, errno, "recvfrom");