diff options
Diffstat (limited to 'ld/emultempl/pe.em')
-rw-r--r-- | ld/emultempl/pe.em | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 8823e18..1727b4f 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -753,11 +753,11 @@ gld_${EMULATION_NAME}_after_open () else /* sentinel */ seq = 'c'; - new_name = xmalloc (strlen (is->the_bfd->filename) + 2); + new_name = xmalloc (strlen (is->the_bfd->filename) + 3); sprintf (new_name, "%s.%c", is->the_bfd->filename, seq); is->the_bfd->filename = new_name; - new_name = xmalloc (strlen(is->filename) + 2); + new_name = xmalloc (strlen(is->filename) + 3); sprintf (new_name, "%s.%c", is->filename, seq); is->filename = new_name; } |