diff options
Diffstat (limited to 'apps/plugins/codebuster.c')
| -rw-r--r-- | apps/plugins/codebuster.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/codebuster.c b/apps/plugins/codebuster.c index 1169f26..ca36d5d 100644 --- a/apps/plugins/codebuster.c +++ b/apps/plugins/codebuster.c @@ -174,7 +174,7 @@ static void draw_piece(int x, int y, int w, int h, int color_id, bool emph) { if (settings.labeling && color_id >= 0) { char text[2]; - rb->snprintf(text, 2, "%d", color_id); + rb->snprintf(text, sizeof(text), "%d", color_id); int fw, fh; rb->font_getstringsize(text, &fw, &fh, FONT_SYSFIXED); rb->lcd_putsxy(x + get_margin(fw, w), y + get_margin(fh, h), text); |