Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Dec 2008 01:50:20 GMT
From:      Gabor Kovesdan <gabor@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 155289 for review
Message-ID:  <200812260150.mBQ1oKCE039149@repoman.freebsd.org>

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

Change 155289 by gabor@gabor_server on 2008/12/26 01:50:08

	- Increase pre-read buffer to enhance accuracy of binary file detection

Affected files ...

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

Differences ...

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

@@ -55,7 +55,7 @@
 /* Some global variable for the buffering and reading. */
 static char	*lnbuf;
 static size_t	 lnbuflen;
-static char	 binbuf[BUFSIZ * 4];
+static char	 binbuf[BUFSIZ * 8];
 static int	 binbufsiz;
 char		*binbufptr;
 static int	 bzerr;



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