From 5429b6f18933d108741dff8eed8ca20df80e7b59 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Sat, 22 Jun 2013 01:16:24 +0000 Subject: [PATCH] Fix out of bound access --- ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.39.2