Subject: CVS commit: src/usr.bin/grep
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <christos@netbsd.org>
List: source-changes
Date: 04/22/2005 21:02:42
Module Name:	src
Committed By:	christos
Date:		Fri Apr 22 21:02:42 UTC 2005

Modified Files:
	src/usr.bin/grep: binary.c

Log Message:
PR/29806: Michael Van Elst: Off by one in code.
While I am there:
	- factor out the binary test to an inline function.
	- use size_t where appropriate.
	- check for <= 0 in gzread; it returns -1 on error.


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 src/usr.bin/grep/binary.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.