fix size check

This commit is contained in:
Glenn Maynard
2007-01-26 02:56:46 +00:00
parent 9f806c2373
commit 1b813dbd25
+1 -1
View File
@@ -83,7 +83,7 @@ static int get_readable_ranges( const void **starts, const void **ends, int size
file_used += ret;
/* Parse lines. */
while( got < size )
while( got < size-1 )
{
char *p = (char *) memchr( file, '\n', file_used );
if( p == NULL )