Browse Source

without copy

Alligator-1 1 year ago
parent
commit
10dd493057
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/sysutils/sysformt.inc

+ 1 - 1
rtl/objpas/sysutils/sysformt.inc

@@ -275,7 +275,7 @@ begin
               If (Prec<>-1) and (Index>Prec) then
                 begin
                 Index:=Prec;
-                ToAdd:=Copy(ToAdd,1,Index);
+                SetLength(ToAdd,Index);
                 end;
               end;
         'D' : begin