mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-05 07:00:27 +01: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;
|
l: SizeInt;
|
||||||
begin
|
begin
|
||||||
if (p=nil) or (Count=0) then exit('');
|
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 l:=Count;
|
||||||
if l=0 then exit('');
|
if l=0 then exit('');
|
||||||
SetLength(Result,l);
|
SetLength(Result,l);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user