summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-10-09 10:33:46 +0000
committerdes <des@FreeBSD.org>1998-10-09 10:33:46 +0000
commit077f96877a5780ca47dc08850d8619b8272226b8 (patch)
treeee05db4a54e87d8ce461a777af885a88e3ef69bb /lib/libutil
parent17e222060d5d55f16a21f1a940e17a88f01e2100 (diff)
downloadFreeBSD-src-077f96877a5780ca47dc08850d8619b8272226b8.zip
FreeBSD-src-077f96877a5780ca47dc08850d8619b8272226b8.tar.gz
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>
Diffstat (limited to 'lib/libutil')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud