]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
generate the trailing zero
authorWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 25 Jun 2012 09:52:34 +0000 (11:52 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 25 Jun 2012 09:52:34 +0000 (11:52 +0200)
code.c

diff --git a/code.c b/code.c
index 4d2a0da2c8b98a7787a538013f203d3c358e51f8..caeab883b8ada2edb099e2113b9f4cc2ff02357a 100644 (file)
--- a/code.c
+++ b/code.c
@@ -110,6 +110,7 @@ uint32_t code_genstring(const char *str)
         code_chars_add(*str);
         ++str;
     }
+    code_chars_add(0);
     return off;
 }