Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jan 2009 12:10:58 GMT
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 155904 for review
Message-ID:  <200901101210.n0ACAwo1045984@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=155904

Change 155904 by gabor@gabor_server on 2009/01/10 12:10:37

	- This should have been the right change

Affected files ...

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

Differences ...

==== //depot/projects/soc2008/gabor_textproc/grep/file.c#39 (text+ko) ====

@@ -133,7 +133,7 @@
 		/* Only pre-read to the buffer if we need the binary check. */
 		if (binbehave != BINFILE_TEXT) {
 			if (f->stdin == 1)
-				st.st_size = 0;
+				st.st_size = MAXBUFSIZ;
 			else if (stat(fname, &st) != 0)
 				err(2, NULL);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901101210.n0ACAwo1045984>