From 7ea1e0b80a3c8e3aeb7038bc9ed1b3e891ad7f21 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Fri, 28 Jan 2022 17:57:44 +0100 Subject: [PATCH] [screen] Longer initializer --- src/terminal/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/terminal/screen.c b/src/terminal/screen.c index f04e2c661..048e84d7a 100644 --- a/src/terminal/screen.c +++ b/src/terminal/screen.c @@ -977,7 +977,7 @@ add_char16(struct string *screen, struct screen_driver *driver, * - COLOR_MODE_16. Use 16 colors. * - An unsupported color mode. Use 16 colors. */ if (driver->opt.color_mode != COLOR_MODE_MONO) { - char code[6] = ";30;40"; + char code[] = ";30;40"; unsigned char bgcolor = TERM_COLOR_BACKGROUND_16(ch->c.color); code[2] += TERM_COLOR_FOREGROUND_16(ch->c.color);