PERFORCE change 145873 for review

Gabor Kovesdan gabor at FreeBSD.org
Fri Jul 25 08:52:12 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=145873

Change 145873 by gabor at gabor_server on 2008/07/25 08:52:00

	IFC

Affected files ...

.. //depot/projects/soc2008/gabor_textproc/src/usr.bin/grep/file.c#3 integrate

Differences ...

==== //depot/projects/soc2008/gabor_textproc/src/usr.bin/grep/file.c#3 (text+ko) ====

@@ -152,7 +152,7 @@
 	}
 
 	/* Read a line whether from the buffer or from the file itself. */
-	for (i = 0; !grep_feof(f); i++) {
+	for (i = 0; !(grep_feof(f) && (binbufptr == &binbuf[binbufsiz])); i++) {
 		if (binbufptr == &binbuf[binbufsiz]) {
 			ch = grep_fgetc(f);
 		} else {


More information about the p4-projects mailing list