]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - typedef.c
Removed primitive AST tree generator ... I'm planning a rewrite as we speak.
[xonotic/gmqcc.git] / typedef.c
index dcc4e20b377a37a498859cb151d1773621ad1d53..ecd8b8b30d001a86e1d6c206249efa9264a83e4f 100644 (file)
--- a/typedef.c
+++ b/typedef.c
@@ -80,7 +80,7 @@ int typedef_add(const char *from, const char *to) {
            strncmp(from, "void",   sizeof("void"))   == 0) {
                
                typedef_table[hash]       = mem_a(sizeof(typedef_node));
-               typedef_table[hash]->name = strdup(from);
+               typedef_table[hash]->name = util_strdup(from);
                return -100;
        } else {
                /* search the typedefs for it (typedef-a-typedef?) */