Browse Source

* fix the problem of long mangledname in internal writer

pierre 25 years ago
parent
commit
945ae36b63
1 changed files with 13 additions and 2 deletions
  1. 13 2
      compiler/og386cff.pas

+ 13 - 2
compiler/og386cff.pas

@@ -451,8 +451,16 @@ unit og386cff;
         s:=p^.name;
         s:=p^.name;
         if length(s)>8 then
         if length(s)>8 then
          begin
          begin
-           s:=s+#0;
+           if length(s)<255 then
+             s:=s+#0;
            strs^.write(s[1],length(s));
            strs^.write(s[1],length(s));
+           { if the length is 255 we need to addd the terminal #0
+             separately bug report from Florian 20/6/2000 }
+           if length(s)=255 then
+             begin
+               s:=#0;
+               strs^.write(s[1],length(s));
+             end;
          end
          end
         else
         else
          pos:=-1;
          pos:=-1;
@@ -995,7 +1003,10 @@ unit og386cff;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.23  2000-04-12 12:42:29  pierre
+  Revision 1.24  2000-06-21 20:56:37  pierre
+   * fix the problem of long mangledname in internal writer
+
+  Revision 1.23  2000/04/12 12:42:29  pierre
    * fix the -g-l option
    * fix the -g-l option
 
 
   Revision 1.22  2000/03/10 16:05:28  pierre
   Revision 1.22  2000/03/10 16:05:28  pierre