diff options
-rw-r--r-- | gas/macro.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/macro.c b/gas/macro.c index f9f2d63..afcd48b 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -263,13 +263,13 @@ buffer_and_nest (const char *from, const char *to, sb *ptr, if (from != NULL && strcasecmp (from, "MACRO") == 0 && len >= 8 && strncasecmp (ptr->ptr + i, "linefile", 8) == 0) { - char saved_eol_char = ptr->ptr[ptr->len]; - - ptr->ptr[ptr->len] = '\n'; - temp_ilp (ptr->ptr + i + 8); + sb_add_char (ptr, more); + temp_ilp (sb_terminate (ptr) + i + 8); s_linefile (0); restore_ilp (); - ptr->ptr[ptr->len] = saved_eol_char; + line_start = ptr->len; + more = get_line (ptr); + continue; } } |