diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-10-09 10:33:46 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 1998-10-09 10:33:46 +0000 |
commit | 710668cad452c0d21e7de1a8ac53685d16bdedf9 (patch) | |
tree | 16f134aed4ae7cde0128bfcbdf9276516a109920 /usr.bin/head | |
parent | 1daa104c05714b84cda8707f31717e2d8d6e4610 (diff) |
Notes
Diffstat (limited to 'usr.bin/head')
-rw-r--r-- | usr.bin/head/head.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c index 632660503831f..fc4bdf61664b4 100644 --- a/usr.bin/head/head.c +++ b/usr.bin/head/head.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)head.c 8.2 (Berkeley) 5/4/95"; #endif static const char rcsid[] = - "$Id: head.c,v 1.7 1997/07/10 06:46:13 charnier Exp $"; + "$Id: head.c,v 1.8 1997/07/11 06:13:18 charnier Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -157,7 +157,7 @@ head_bytes(fp, cnt) else readlen = sizeof(buf); readlen = fread(buf, sizeof(char), readlen, fp); - if (readlen == EOF) + if (readlen == 0) break; if (fwrite(buf, sizeof(char), readlen, stdout) != readlen) err(1, "stdout"); |