aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fetch
diff options
context:
space:
mode:
authorJean-Marc Zucconi <jmz@FreeBSD.org>1996-07-02 01:49:47 +0000
committerJean-Marc Zucconi <jmz@FreeBSD.org>1996-07-02 01:49:47 +0000
commit144e75837ea3f3145e5daad5ef67c9200771953e (patch)
treed6f8fa8a16308d5e6ff86c8e4949b3e6cc925867 /usr.bin/fetch
parentc6c4b08e59f0657c36f1eea18168660060550aab (diff)
downloadsrc-144e75837ea3f3145e5daad5ef67c9200771953e.tar.gz
src-144e75837ea3f3145e5daad5ef67c9200771953e.zip
Use read(fileno(fp), ...) instead of fread(..., fp) to avoid buffered input.
Notes
Notes: svn path=/head/; revision=16890
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r--usr.bin/fetch/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/main.c b/usr.bin/fetch/main.c
index 3ab49a808fad..5ed7a6c2d0b8 100644
--- a/usr.bin/fetch/main.c
+++ b/usr.bin/fetch/main.c
@@ -24,7 +24,7 @@
* SUCH DAMAGE.
*/
-/* $Id: main.c,v 1.5 1996/06/24 01:03:05 jmz Exp $ */
+/* $Id: main.c,v 1.6 1996/06/25 21:33:18 ache Exp $ */
#include <stdlib.h>
#include <stdio.h>
@@ -281,7 +281,7 @@ ftpget ()
display (size, size0);
while (1) {
- n = status = fread (buffer, 1, BUFFER_SIZE, fp);
+ n = status = read (fileno (fp), buffer, BUFFER_SIZE);
if (status <= 0)
break;
display (size, n);