summaryrefslogtreecommitdiff
path: root/plugins/dex
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/dex')
-rw-r--r--plugins/dex/class.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/dex/class.c b/plugins/dex/class.c
index a674b98..d6af91b 100644
--- a/plugins/dex/class.c
+++ b/plugins/dex/class.c
@@ -25,6 +25,7 @@
#include <malloc.h>
+#include <string.h>
#include "dex-int.h"
@@ -313,7 +314,7 @@ GDexClass *g_dex_class_new(GDexFormat *format, const class_def_item *def)
routine = g_dex_method_get_routine(method);
g_object_ref(G_OBJECT(ctype));
- g_binary_routine_set_namespace(routine, ctype, ".");
+ g_binary_routine_set_namespace(routine, ctype, strdup("."));
g_binary_format_add_symbol(base, G_BIN_SYMBOL(routine));
@@ -339,7 +340,7 @@ GDexClass *g_dex_class_new(GDexFormat *format, const class_def_item *def)
routine = g_dex_method_get_routine(method);
g_object_ref(G_OBJECT(ctype));
- g_binary_routine_set_namespace(routine, ctype, ".");
+ g_binary_routine_set_namespace(routine, ctype, strdup("."));
g_binary_format_add_symbol(base, G_BIN_SYMBOL(routine));