Description: Fix buffering of first file.
 Buffering of the first read file was disabled.
Author: Christopher Jefferson
Last-Update: 2016-12-14
Index: gap-4r8p6/src/sysfiles.c
===================================================================
--- gap-4r8p6.orig/src/sysfiles.c
+++ gap-4r8p6/src/sysfiles.c
@@ -2332,7 +2332,7 @@ Int HasAvailableBytes( UInt fid )
       syBuf[fid].fp == -1)
     return -1;
 
-  if (syBuf[fid].bufno > 0)
+  if (syBuf[fid].bufno >= 0)
     {
       bufno = syBuf[fid].bufno;
       if (syBuffers[bufno].bufstart < syBuffers[bufno].buflen)
