From: Dale Weiler Date: Sat, 22 Jun 2013 01:16:24 +0000 (+0000) Subject: Fix out of bound access X-Git-Tag: v0.3.0~86 X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=commitdiff_plain;h=5429b6f18933d108741dff8eed8ca20df80e7b59;hp=d39fb653aa3c5e807fb1b6b2a1aef8c3f608f409 Fix out of bound access --- diff --git a/ir.c b/ir.c index ea2e9cf..72e7406 100644 --- 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));