Browse Source

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

git-svn-id: trunk@41725 -
Jonas Maebe 6 years ago
parent
commit
1bb8bd471a
1 changed files with 1 additions and 1 deletions
  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));