* 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
2 changed files with 11 additions and 3 deletions
|
@ -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*
|
||||
|
|
|
@ -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…
Reference in a new issue