Sfoglia il codice sorgente

* fix msgtxt array size if the text size is an exact multiple of 240

git-svn-id: trunk@41725 -
Jonas Maebe 6 anni fa
parent
commit
1bb8bd471a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      compiler/utils/msg2inc.pp

+ 1 - 1
compiler/utils/msg2inc.pp

@@ -411,7 +411,7 @@ begin
   writeln(t,');');
   close(t);
 {update arraysize}
-  s:=l0(msgsize div maxslen); { we start with 0 }
+  s:=l0((msgsize-1) div maxslen); { we start with 0 }
   assign(f,fn);
   reset(f,1);
   seek(f,22+34+2*eollen+2*length(constname));