* listing.c (buffer_line): Don't write past the end of `line' when
EOF is reached.
This commit is contained in:
parent
86ed34a902
commit
97735a42e7
@ -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>
|
2001-09-25 Alexandre Oliva <aoliva@redhat.com>
|
||||||
|
|
||||||
* config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*
|
* config/tc-mn10300.c (tc_gen_reloc): Don't emit an *ABS*
|
||||||
|
@ -513,9 +513,12 @@ buffer_line (file, line, size)
|
|||||||
if (c == EOF)
|
if (c == EOF)
|
||||||
{
|
{
|
||||||
file->at_end = 1;
|
file->at_end = 1;
|
||||||
*p++ = '.';
|
if (count + 2 < size)
|
||||||
*p++ = '.';
|
{
|
||||||
*p++ = '.';
|
*p++ = '.';
|
||||||
|
*p++ = '.';
|
||||||
|
*p++ = '.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
file->linenum++;
|
file->linenum++;
|
||||||
*p++ = 0;
|
*p++ = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user