Răsfoiți Sursa

* 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 ani în urmă
părinte
comite
8d6f332fa9
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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;