summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr.bin/nc/netcat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c
index 1454dd7b90..2861948dbf 100644
--- a/src/usr.bin/nc/netcat.c
+++ b/src/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: netcat.c,v 1.119 2014/05/20 01:25:23 guenther Exp $ */ 1/* $OpenBSD: netcat.c,v 1.120 2014/06/10 16:23:07 tedu Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> 3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 * 4 *
@@ -733,12 +733,12 @@ void
733readwrite(int nfd) 733readwrite(int nfd)
734{ 734{
735 struct pollfd pfd[2]; 735 struct pollfd pfd[2];
736 unsigned char buf[16384]; 736 unsigned char buf[64 * 1024];
737 int n, wfd = fileno(stdin); 737 int n, wfd = fileno(stdin);
738 int lfd = fileno(stdout); 738 int lfd = fileno(stdout);
739 int plen; 739 int plen;
740 740
741 plen = 2048; 741 plen = sizeof(buf);
742 742
743 /* Setup Network FD */ 743 /* Setup Network FD */
744 pfd[0].fd = nfd; 744 pfd[0].fd = nfd;