]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Fix out of bound access
authorDale Weiler <killfieldengine@gmail.com>
Sat, 22 Jun 2013 01:16:24 +0000 (01:16 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Sat, 22 Jun 2013 01:16:24 +0000 (01:16 +0000)
ir.c

diff --git a/ir.c b/ir.c
index ea2e9cf47e8638a99c128250725ebe38913fceed..72e7406d663b9f570a90d890ee2e56257ca63d66 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -3779,7 +3779,7 @@ void ir_function_dump(ir_function *f, char *ind,
         return;
     }
     oprintf("%sfunction %s\n", ind, f->name);
-    strncat(ind, "\t", IND_BUFSZ);
+    strncat(ind, "\t", IND_BUFSZ-1);
     if (vec_size(f->locals))
     {
         oprintf("%s%i locals:\n", ind, (int)vec_size(f->locals));