diff options
Diffstat (limited to 'gas/config/obj-coff.c')
-rw-r--r-- | gas/config/obj-coff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c index 792affa34d1..b71040a025c 100644 --- a/gas/config/obj-coff.c +++ b/gas/config/obj-coff.c @@ -218,10 +218,10 @@ obj_coff_common_parse (int ignore ATTRIBUTE_UNUSED, symbolS *symbolP, addressT s } /* Emit a string. Note no NUL-termination. */ - pfxlen = strlen (" -aligncomm:") + strlen (S_GET_NAME (symbolP)) + 1; + pfxlen = strlen (" -aligncomm:") + 2 + strlen (S_GET_NAME (symbolP)) + 1; numlen = snprintf (numbuff, sizeof (numbuff), "%d", (int) align); frag = frag_more (pfxlen + numlen); - (void) sprintf (frag, " -aligncomm:%s,", S_GET_NAME (symbolP)); + (void) sprintf (frag, " -aligncomm:\"%s\",", S_GET_NAME (symbolP)); memcpy (frag + pfxlen, numbuff, numlen); /* Restore original subseg. */ subseg_set (current_seg, current_subseg); |