Hi tech@, Use BUFSIZE instead of hard-code in netcat.c, FYI. Thanks!
Best Regards Nan Xiao Index: netcat.c =================================================================== RCS file: /cvs/src/usr.bin/nc/netcat.c,v retrieving revision 1.187 diff -u -p -r1.187 netcat.c --- netcat.c 15 Jul 2017 17:27:39 -0000 1.187 +++ netcat.c 24 Oct 2017 09:03:28 -0000 @@ -564,7 +564,7 @@ main(int argc, char *argv[]) * the regular functions to talk to the caller. */ int rv, plen; - char buf[16384]; + char buf[BUFSIZE]; struct sockaddr_storage z; len = sizeof(z);