diff options
author | DJ Delorie <dj@redhat.com> | 1999-09-14 22:19:55 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 1999-09-14 22:19:55 +0000 |
commit | e4e24acbc8053e0397c44e10e1b3ea02ea7cd913 (patch) | |
tree | 82a28f6d3ceba23d514367c4651554fedc50a9f7 | |
parent | 41fd319a457f4f2e4409c09ab89e37fc60d2cf2c (diff) | |
download | gdb-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.
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/emultempl/pe.em | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index ad28432..3af112d 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +1999-09-14 Donn Terry <donn@interix.com> + + * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for + terminating null. + 1999-09-14 Nick Clifton <nickc@cygnus.com> * Makefile.in: Add earm_epoc_pe.c build target. 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; } |