Explorar el Código

* Fix from Bart for range check error. Fix issue #40240

Michaël Van Canneyt hace 2 años
padre
commit
5442155f55
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      packages/fcl-base/src/fptemplate.pp

+ 1 - 0
packages/fcl-base/src/fptemplate.pp

@@ -382,6 +382,7 @@ Var
   SLen : Integer;
 
 begin
+  if (NChars=0) then Exit;
   SLen:=Length(S);
   SetLength(S,SLen+NChars);
   Move(P^,S[Slen+1],NChars);