Date: Fri, 9 Oct 1998 03:33:47 -0700 (PDT) From: "Dag-Erling C. Sm\xf8rgrav" <des@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: cvs commit: src/usr.bin/head head.c Message-ID: <199810091033.DAA01184@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
des 1998/10/09 03:33:46 PDT Modified files: usr.bin/head head.c Log: 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> Revision Changes Path 1.9 +2 -2 src/usr.bin/head/head.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810091033.DAA01184>