]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
ftepp_preprocess_string uses strlen - push nul-byte to verminor and vermajor
authorWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 3 Dec 2012 19:23:40 +0000 (20:23 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Mon, 3 Dec 2012 19:23:40 +0000 (20:23 +0100)
ftepp.c

diff --git a/ftepp.c b/ftepp.c
index 84c17199e104bb840496829d461e8a6ca1089853..7aa1c547716347f14b85f9491fb12c98f186e51c 100644 (file)
--- a/ftepp.c
+++ b/ftepp.c
@@ -1404,6 +1404,8 @@ bool ftepp_init()
     vec_upload(vermajor, major, strlen(major));
     vec_push  (verminor, '"');
     vec_push  (vermajor, '"');
+    vec_push  (verminor, 0);
+    vec_push  (vermajor, 0);
 
     ftepp_preprocess_string("__builtin__", verminor);
     ftepp_preprocess_string("__builtin__", vermajor);