]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - code.c
Remove vec_upload
[xonotic/gmqcc.git] / code.c
diff --git a/code.c b/code.c
index 42b46a4e93b28832da1b6e13296731ef3eac6e8d..5c62efb82603357a51ee39826a3d68ab45aeb34b 100644 (file)
--- a/code.c
+++ b/code.c
@@ -115,7 +115,7 @@ uint32_t code_genstring(code_t *code, const char *str) {
         return CODE_HASH_LEAVE(existing);
 
     CODE_HASH_LEAVE(existing) = vec_size(code->chars);
-    vec_upload(code->chars, str, strlen(str)+1);
+    vec_append(code->chars, strlen(str)+1, str);
 
     util_htseth(code->string_cache, str, hash, CODE_HASH_ENTER(existing));
     return CODE_HASH_LEAVE(existing);