mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-02-04 08:14:51 +01:00
* Avoid range-check error
git-svn-id: trunk@10236 -
This commit is contained in:
parent
fe7b1a7f2e
commit
16ff4076ee
@ -402,7 +402,8 @@ begin
|
||||
BufIndex:=ParamPart[i].Stop;
|
||||
end;
|
||||
CopyLen:=Length(SQL)+1-BufIndex;
|
||||
Move(SQL[BufIndex],NewQuery[NewQueryIndex],CopyLen);
|
||||
if CopyLen > 0 then
|
||||
Move(SQL[BufIndex],NewQuery[NewQueryIndex],CopyLen);
|
||||
end
|
||||
else
|
||||
NewQuery:=SQL;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user