freebsd-skq/usr.bin/head
des 077f96877a 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