mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-16 08:59:26 +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);
|
||||
if p>0 then Delete(Result,1,p);
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user