summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-06-10 16:23:08 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-06-10 16:23:08 +0000
commit9406738f5a2454c0aabad4a404ee916cea66fcfa (patch)
tree987eb26c92a088ca5e68a35e1b3e05f9b3830105 /usr.bin
parent613b81932842d24fd6ba89d6f93402bbf4966a9c (diff)
increase buffer size to 64k, and actually use it. ok deraadt
from John-Mark Gurney
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/nc/netcat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
index 1454dd7b90d..2861948dbf1 100644
--- a/usr.bin/nc/netcat.c
+++ b/usr.bin/nc/netcat.c
@@ -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 <ericj@monkey.org>
*
@@ -733,12 +733,12 @@ void
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;