about summary refs log tree commit diff stats
path: root/src/librarian
diff options
context:
space:
mode:
Diffstat (limited to 'src/librarian')
-rw-r--r--src/librarian/librarian.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librarian/librarian.c b/src/librarian/librarian.c
index 1d61aa2d..415278ae 100644
--- a/src/librarian/librarian.c
+++ b/src/librarian/librarian.c
@@ -266,7 +266,7 @@ static int AddNeededLib_add(lib_t** maplib, int local, needed_libs_t* needed, in
                 return 1;
             }
             lm->l_addr = (Elf32_Addr)to_ptrv(GetElfDelta(lib->e.elf));
-            lm->l_name = to_ptrv(lib->name);
+            lm->l_name = to_cstring(lib->name);
             lm->l_ld = to_ptrv(GetDynamicSection(lib->e.elf));
         } else
         #endif