1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-27 11:55:06 +00:00
freebsd/usr.bin/head
Dag-Erling Smørgrav 710668cad4 fread() returns 0 on eof or error, not EOF. This fixes the following
bug:

  "head -c <n>" never exit and loops forever (until it is killed),
  if the input stream has fewer bytes than specified (n).

PR:		bin/8225
Submitted-by:	FUJIMOTO Kensaku <fujimoto@oscar.elec.waseda.ac.jp>
1998-10-09 10:33:46 +00:00
..
head.1 Support for -c, byte count. 1997-04-06 00:54:27 +00:00
head.c fread() returns 0 on eof or error, not EOF. This fixes the following 1998-10-09 10:33:46 +00:00
Makefile