=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/nc/netcat.c,v retrieving revision 1.119 retrieving revision 1.120 diff -u -r1.119 -r1.120 --- src/usr.bin/nc/netcat.c 2014/05/20 01:25:23 1.119 +++ src/usr.bin/nc/netcat.c 2014/06/10 16:23:07 1.120 @@ -1,4 +1,4 @@ -/* $OpenBSD: netcat.c,v 1.119 2014/05/20 01:25:23 guenther Exp $ */ +/* $OpenBSD: netcat.c,v 1.120 2014/06/10 16:23:07 tedu Exp $ */ /* * Copyright (c) 2001 Eric Jackson * @@ -733,12 +733,12 @@ readwrite(int nfd) { struct pollfd pfd[2]; - unsigned char buf[16384]; + unsigned char buf[64 * 1024]; int n, wfd = fileno(stdin); int lfd = fileno(stdout); int plen; - plen = 2048; + plen = sizeof(buf); /* Setup Network FD */ pfd[0].fd = nfd;