* avoid a range check error

git-svn-id: trunk@6064 -
This commit is contained in:
pierre 2007-01-19 02:53:46 +00:00
parent 67fd7833cd
commit 2c09c499ab

View File

@ -166,7 +166,7 @@ var
begin
readbuf := 0;
repeat
numbytes := @buf[bufsize-1] - bufptr + 1;
numbytes := (@buf[bufsize-1] + 1) - bufptr;
if numbytes > count then
numbytes := count;
if numbytes > 0 then