rtl: pass exact size to delete instead of full string length

git-svn-id: trunk@22418 -
This commit is contained in:
paul 2012-09-18 00:31:21 +00:00
parent a13c9d93ff
commit a2548fc9f9

View File

@ -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;