diff options
author | tedu <> | 2014-06-10 16:23:07 +0000 |
---|---|---|
committer | tedu <> | 2014-06-10 16:23:07 +0000 |
commit | e5e947e5f5e67a5a5cc46dae95674e5186fa5af1 (patch) | |
tree | c8675f58e05aa9bf8fc4868357df15aacc760abc /src | |
parent | 7cff78e6d2f228bcb76663cf6ece9d865170ae8b (diff) | |
download | openbsd-e5e947e5f5e67a5a5cc46dae95674e5186fa5af1.tar.gz openbsd-e5e947e5f5e67a5a5cc46dae95674e5186fa5af1.tar.bz2 openbsd-e5e947e5f5e67a5a5cc46dae95674e5186fa5af1.zip |
increase buffer size to 64k, and actually use it. ok deraadt
from John-Mark Gurney
Diffstat (limited to 'src')
-rw-r--r-- | src/usr.bin/nc/netcat.c | 6 |
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 | |||
733 | readwrite(int nfd) | 733 | readwrite(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; |