Explorar el Código

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

git-svn-id: trunk@22418 -
paul hace 13 años
padre
commit
a2548fc9f9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      rtl/unix/sysunix.inc

+ 1 - 1
rtl/unix/sysunix.inc

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