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 #include @@ -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);