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 1169f265c3..ca36d5d01b 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) { | |||
174 | 174 | ||
175 | if (settings.labeling && color_id >= 0) { | 175 | if (settings.labeling && color_id >= 0) { |
176 | char text[2]; | 176 | char text[2]; |
177 | rb->snprintf(text, 2, "%d", color_id); | 177 | rb->snprintf(text, sizeof(text), "%d", color_id); |
178 | 178 | ||
179 | int fw, fh; rb->font_getstringsize(text, &fw, &fh, FONT_SYSFIXED); | 179 | int fw, fh; rb->font_getstringsize(text, &fw, &fh, FONT_SYSFIXED); |
180 | rb->lcd_putsxy(x + get_margin(fw, w), y + get_margin(fh, h), text); | 180 | rb->lcd_putsxy(x + get_margin(fw, w), y + get_margin(fh, h), text); |