mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-27 05:32:28 +02:00
Only call moved if len>0, as otherwise astring local variable is nil, which leads to a range check error for astring[1]
git-svn-id: trunk@40132 -
This commit is contained in:
parent
96460b70b2
commit
3b49fda0a2
@ -1820,7 +1820,8 @@ begin
|
||||
begin
|
||||
len:=gettokenbufsizeint;
|
||||
setlength(astring,len);
|
||||
move(tokenbuf[tbi],astring[1],len);
|
||||
if len>0 then
|
||||
move(tokenbuf[tbi],astring[1],len);
|
||||
write([' ',astring]);
|
||||
inc(tbi,len);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user