Browse Source

* fixed error in fix committed r11894 (we don't write out the last new
line, but we have to reserve memory for the terminating #0)

git-svn-id: branches/wpo@12317 -

Jonas Maebe 17 years ago
parent
commit
8d6f332fa9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/utils/msg2inc.pp

+ 2 - 2
compiler/utils/msg2inc.pp

@@ -161,10 +161,10 @@ begin
      writeln('aborting');
      halt(1);
    end;
-{ no linebreak after last entry }
-  dec(msgsize);
 { alloc memory }
   getmem(msgtxt,msgsize);
+{ no linebreak after last entry }
+  dec(msgsize);
   ptxt:=msgtxt;
   getmem(enumtxt,enumsize);
   penum:=enumtxt;