1999-09-14 Donn Terry <donn@interix.com>
authorDJ Delorie <dj@redhat.com>
Tue, 14 Sep 1999 22:19:55 +0000 (22:19 +0000)
committerDJ Delorie <dj@redhat.com>
Tue, 14 Sep 1999 22:19:55 +0000 (22:19 +0000)
* emultempl/pe.em (gld_${EMULATION_NAME}_after_open): allow for
terminating null.

ld/ChangeLog
ld/emultempl/pe.em

index ad28432adcca3620377585c151105bfa2eb27e38..3af112db1566fb4878284b75dda609b73ff63713 100644 (file)
@@ -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.
index 8823e18e2645ed1066b8ce953d8506db5757c566..1727b4f15cc959d0b7550dd77bf3531e57ab25df 100644 (file)
@@ -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;
              }