Browse Source

* fix writing of long stabstr entries

git-svn-id: trunk@3279 -
peter 19 years ago
parent
commit
ead6c6a29a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/ogbase.pas

+ 1 - 1
compiler/ogbase.pas

@@ -1887,7 +1887,7 @@ implementation
                                   inc(bufend);
                                 end;
                               mergedstabstrsec.write(buf,bufend);
-                            until (bufend<>-1) or (bufsize<sizeof(buf));
+                            until (buf[bufend-1]=0) or (bufsize<sizeof(buf));
                           end;
                         { Copy and Update the relocation }
                         if assigned(hstabreloc) then