PERFORCE change 145872 for review

Gabor Kovesdan gabor at FreeBSD.org
Fri Jul 25 08:50:10 UTC 2008


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

Change 145872 by gabor at gabor_server on 2008/07/25 08:49:56

	- Fix a bug slipped in among the last changes
	
	Reported by:	Pedro F. Giffuni <pfgshield-freebsd at yahoo.com>

Affected files ...

.. //depot/projects/soc2008/gabor_textproc/grep/file.c#28 edit

Differences ...

==== //depot/projects/soc2008/gabor_textproc/grep/file.c#28 (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