From: Wolfgang (Blub) Bumiller Date: Mon, 3 Dec 2012 19:23:40 +0000 (+0100) Subject: ftepp_preprocess_string uses strlen - push nul-byte to verminor and vermajor X-Git-Tag: 0.1.9~121 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ea08d16c06bce44699a5be419bffb8b30c1bfe17;p=xonotic%2Fgmqcc.git ftepp_preprocess_string uses strlen - push nul-byte to verminor and vermajor --- diff --git a/ftepp.c b/ftepp.c index 84c1719..7aa1c54 100644 --- 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);