Browse Source

* Fix typo, missing brackets

Michaël Van Canneyt 1 year ago
parent
commit
121f6fce22
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/rtl-objpas/src/inc/strutils.pp

+ 1 - 1
packages/rtl-objpas/src/inc/strutils.pp

@@ -1131,7 +1131,7 @@ begin
   if ALength> k then
     ALength:=k;
   SetLength(Result,i+j-ALength);
-  move (AText[1],result[1],AStart-1*SizeOf(Char));
+  move (AText[1],result[1],(AStart-1)*SizeOf(Char));
   move (ASubText[1],result[AStart],j*SizeOf(Char));
   move (AText[AStart+ALength], Result[AStart+j],(i+1-AStart-ALength)*SizeOf(Char));
 end;