Browse Source

* listing.c (buffer_line): Don't write past the end of `line' when

EOF is reached.
binutils-2_12-branch
Alan Modra 25 years ago
parent
commit
97735a42e7
  1. 5
      gas/ChangeLog
  2. 9
      gas/listing.c

5
gas/ChangeLog

@ -1,3 +1,8 @@
2001-09-25 Geoff Berry <geoff.berry@bops.com>
* listing.c (buffer_line): Don't write past the end of `line' when
EOF is reached.
2001-09-25 Alexandre Oliva <aoliva@redhat.com>
* config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*

9
gas/listing.c

@ -513,9 +513,12 @@ buffer_line (file, line, size)
if (c == EOF)
{
file->at_end = 1;
*p++ = '.';
*p++ = '.';
*p++ = '.';
if (count + 2 < size)
{
*p++ = '.';
*p++ = '.';
*p++ = '.';
}
}
file->linenum++;
*p++ = 0;

Loading…
Cancel
Save