mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 09:59:17 +02:00
rtl: pass exact size to delete instead of full string length
git-svn-id: trunk@22418 -
This commit is contained in:
parent
a13c9d93ff
commit
a2548fc9f9
@ -36,7 +36,7 @@ begin
|
|||||||
p:=Pos('.',Result);
|
p:=Pos('.',Result);
|
||||||
if p>0 then Delete(Result,1,p);
|
if p>0 then Delete(Result,1,p);
|
||||||
p:=Pos('@',Result);
|
p:=Pos('@',Result);
|
||||||
if p>0 then Delete(Result,p,length(Result));
|
if p>0 then Delete(Result,p,length(Result)-p+1);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user