From 013a8922bb8907ffb0f3afd95a6597b3b953e6f9 Mon Sep 17 00:00:00 2001 From: Jaap Haitsma Date: Tue, 19 May 2020 19:01:38 -0400 Subject: [PATCH] Fix compiler warning --- tests/inspect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/inspect.c b/tests/inspect.c index d420a45..866ee16 100644 --- a/tests/inspect.c +++ b/tests/inspect.c @@ -150,7 +150,7 @@ static void draw_grid(SDL_Surface *screen, struct quirc *q, int index) for (i = 0; i < 3; i++) { struct quirc_capstone *cap = &q->capstones[qr->caps[i]]; - char buf[8]; + char buf[16]; snprintf(buf, sizeof(buf), "%d.%c", index, "ABC"[i]); stringColor(screen, cap->center.x, cap->center.y, buf,