mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 18:29:13 +02:00
* avoid a range check error
git-svn-id: trunk@6064 -
This commit is contained in:
parent
67fd7833cd
commit
2c09c499ab
@ -166,7 +166,7 @@ var
|
|||||||
begin
|
begin
|
||||||
readbuf := 0;
|
readbuf := 0;
|
||||||
repeat
|
repeat
|
||||||
numbytes := @buf[bufsize-1] - bufptr + 1;
|
numbytes := (@buf[bufsize-1] + 1) - bufptr;
|
||||||
if numbytes > count then
|
if numbytes > count then
|
||||||
numbytes := count;
|
numbytes := count;
|
||||||
if numbytes > 0 then
|
if numbytes > 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user