Fix compiler warning
This commit is contained in:
parent
cbf911edf0
commit
013a8922bb
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ static void draw_grid(SDL_Surface *screen, struct quirc *q, int index)
|
||||||
|
|
||||||
for (i = 0; i < 3; i++) {
|
for (i = 0; i < 3; i++) {
|
||||||
struct quirc_capstone *cap = &q->capstones[qr->caps[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]);
|
snprintf(buf, sizeof(buf), "%d.%c", index, "ABC"[i]);
|
||||||
stringColor(screen, cap->center.x, cap->center.y, buf,
|
stringColor(screen, cap->center.x, cap->center.y, buf,
|
||||||
|
|
Loading…
Reference in a new issue