Selaa lähdekoodia

* Fix bug ID #37814: correctly initialize max chars

git-svn-id: trunk@46951 -
michael 5 vuotta sitten
vanhempi
commit
5198686c29
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      rtl/objpas/sysutils/syshelp.inc

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

@@ -960,7 +960,7 @@ begin
   if (I>LS) then
     I:=LS;
   I:=I-L+1;
-  M:=AStartIndex-ACount+1; // 1 based
+  M:=AStartIndex-ACount+2; // 1 based
   if M<1 then
     M:=1;
   while (Result=-1) and (I>=M) do