mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 14:39:27 +02:00
codetools: fixed substring
git-svn-id: trunk@35661 -
This commit is contained in:
parent
984f5ac132
commit
4bf4fdc891
@ -5007,7 +5007,7 @@ var
|
||||
l: SizeInt;
|
||||
begin
|
||||
if (p=nil) or (Count=0) then exit('');
|
||||
l:=IndexByte(p,Count,0);
|
||||
l:=IndexByte(p^,Count,0);
|
||||
if l<0 then l:=Count;
|
||||
if l=0 then exit('');
|
||||
SetLength(Result,l);
|
||||
|
Loading…
Reference in New Issue
Block a user