Fix typo in last change.
authorJeff Law <law@redhat.com>
Fri, 17 Sep 1999 21:58:45 +0000 (21:58 +0000)
committerJeff Law <law@redhat.com>
Fri, 17 Sep 1999 21:58:45 +0000 (21:58 +0000)
ld/emultempl/elf32.em

index 1dfe8f4ca4be059bfc485067458b1e1eaeee209a..e33e0ca5fc7e3e7d45174e56b6a1b45a2df1cbd6 100644 (file)
@@ -144,7 +144,7 @@ gld${EMULATION_NAME}_open_dynamic_archive (arch, search, entry)
       filename = strrchr (entry->filename, '/');
       filename++;
 
-      needed_name = (char *) xmalloc (strlen (filename)) + 1;
+      needed_name = (char *) xmalloc (strlen (filename) + 1);
       strcpy (needed_name, filename);
       bfd_elf_set_dt_needed_name (entry->the_bfd, needed_name);
     }