Date: Fri, 25 Jul 2008 08:50:09 GMT From: Gabor Kovesdan <gabor@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 145872 for review Message-ID: <200807250850.m6P8o9s8030489@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=145872 Change 145872 by gabor@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@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 {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807250850.m6P8o9s8030489>