* changed InputFileBufSize from 32kb to 32kb+1byte, because the last

byte is used for zero-termination (so we now always read blocks of
    exactly 32kb from disk)
  * set the first byte of the buffer to #0 when opening a file initially

git-svn-id: trunk@13576 -
This commit is contained in:
Jonas Maebe 2009-08-22 20:20:11 +00:00
parent f2691c4ebf
commit 8dbc728926

View File

@ -29,7 +29,7 @@ interface
cutils,cclasses;
const
InputFileBufSize=32*1024;
InputFileBufSize=32*1024+1;
linebufincrease=512;
type
@ -268,6 +268,7 @@ uses
endoffile:=false;
closed:=false;
Getmem(buf,MaxBufsize);
buf[0]:=#0;
bufstart:=0;
bufsize:=0;
open:=true;