summaryrefslogtreecommitdiff
path: root/plugins/dex
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-08 19:48:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-08 19:48:30 (GMT)
commit6f3c4bc6ec571dcca8e25b9f82a0c2e72310900c (patch)
tree35d5e178a8c93f69956d76e46ed2a2fa9ec84577 /plugins/dex
parent70fe3101ebd8fe28ef821a0c9097ea51d4e0691b (diff)
Changed the type of namespace separators.
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));