diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/macro.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 1825738..40a9a2b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2016-07-01 Nick Clifton <nickc@redhat.com> + + * macro.c (macro_expand_body): Use a buffer big enough to hold an + extremely large integer. + 2016-07-01 Jan Beulich <jbeulich@suse.com> * testsuite/gas/i386/mpx-inval-2.l: Relax for COFF targets. diff --git a/gas/macro.c b/gas/macro.c index 0d1a1d2..deb4a49 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -842,7 +842,7 @@ macro_expand_body (sb *in, sb *out, formal_entry *formals, { /* Sub in the macro invocation number. */ - char buffer[10]; + char buffer[12]; src++; sprintf (buffer, "%d", macro_number); sb_add_string (out, buffer); |