Subject: PR/29806 CVS commit: [netbsd-3] src/usr.bin/grep
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Matthias Scheler <tron@netbsd.org>
List: netbsd-bugs
Date: 07/03/2005 21:18:01
The following reply was made to PR bin/29806; it has been noted by GNATS.
From: Matthias Scheler <tron@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/29806 CVS commit: [netbsd-3] src/usr.bin/grep
Date: Sun, 3 Jul 2005 21:17:21 +0000 (UTC)
Module Name: src
Committed By: tron
Date: Sun Jul 3 21:17:21 UTC 2005
Modified Files:
src/usr.bin/grep [netbsd-3]: binary.c
Log Message:
Pull up revision 1.3 (requested by mlelstv in ticket #527):
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.2.2.1 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.