From 9f5b33d79596f2c14db954d9fb126eaea9ecd829 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 17 Sep 1999 21:58:45 +0000 Subject: [PATCH] Fix typo in last change. --- ld/emultempl/elf32.em | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 1dfe8f4..e33e0ca 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -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); } -- 2.7.4