X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=code.c;h=5c62efb82603357a51ee39826a3d68ab45aeb34b;hp=42b46a4e93b28832da1b6e13296731ef3eac6e8d;hb=1201f06a55585b927f340687095160c473642d25;hpb=f82097b6b8431bcb54fe0212c4fa360415aa372e diff --git a/code.c b/code.c index 42b46a4..5c62efb 100644 --- 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);