소스 검색

* fix writing of long stabstr entries

git-svn-id: trunk@3279 -
peter 19 년 전
부모
커밋
ead6c6a29a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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