Browse Source

Merged revisions 11894,12317 via svnmerge from
svn+ssh://[email protected]/FPC/svn/fpc/branches/wpo

........
r11894 | jonas | 2008-10-13 00:13:19 +0200 (Mon, 13 Oct 2008) | 3 lines

* fixed error that only really caused progblems if the total size
of the messages text is a multiple of 240

........
r12317 | jonas | 2008-12-08 20:03:53 +0100 (Mon, 08 Dec 2008) | 3 lines

* 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: trunk@12333 -

Jonas Maebe 16 years ago
parent
commit
b25b406b56
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/utils/msg2inc.pp

+ 2 - 0
compiler/utils/msg2inc.pp

@@ -163,6 +163,8 @@ begin
    end;
 { alloc memory }
   getmem(msgtxt,msgsize);
+{ no linebreak after last entry }
+  dec(msgsize);
   ptxt:=msgtxt;
   getmem(enumtxt,enumsize);
   penum:=enumtxt;