Use xstrdup not strdup master
authorRobert Pengelly <robertapengelly@hotmail.com>
Wed, 11 Jun 2025 21:02:01 +0000 (22:02 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Wed, 11 Jun 2025 21:02:01 +0000 (22:02 +0100)
pe.c

diff --git a/pe.c b/pe.c
index 777c4c1b3a1c5e977d24415b81651d3fb79773b7..579a395eba8e6783a956d6f0604387492a592a7d 100644 (file)
--- a/pe.c
+++ b/pe.c
@@ -759,7 +759,7 @@ struct symbol_info *create_symbol_list (struct export_name *export_name, unsigne
     unsigned long i, j;
     
     module_name = state->output_filename;
     unsigned long i, j;
     
     module_name = state->output_filename;
-    name = strdup (module_name);
+    name = xstrdup (module_name);
     
     if ((p = strrchr (module_name, '/')) || (p = strrchr (module_name, '\\'))) {
     
     
     if ((p = strrchr (module_name, '/')) || (p = strrchr (module_name, '\\'))) {