freebsd-dev/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 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00