aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>1999-09-14 22:19:55 +0000
committerDJ Delorie <dj@redhat.com>1999-09-14 22:19:55 +0000
commite4e24acbc8053e0397c44e10e1b3ea02ea7cd913 (patch)
tree82a28f6d3ceba23d514367c4651554fedc50a9f7 /ld/emultempl
parent41fd319a457f4f2e4409c09ab89e37fc60d2cf2c (diff)
downloadgdb-e4e24acbc8053e0397c44e10e1b3ea02ea7cd913.zip
gdb-e4e24acbc8053e0397c44e10e1b3ea02ea7cd913.tar.gz
gdb-e4e24acbc8053e0397c44e10e1b3ea02ea7cd913.tar.bz2
1999-09-14 Donn Terry <donn@interix.com>
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for terminating null.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/pe.em4
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;
}