From cfcb475435a9efb3de794e93103b931d16e3a959 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 28 Oct 2019 11:10:58 +0100 Subject: [PATCH] LOLWUT 6: always pick a default color sequence. --- src/lolwut6.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lolwut6.c b/src/lolwut6.c index b76d8069..471bf66c 100644 --- a/src/lolwut6.c +++ b/src/lolwut6.c @@ -59,6 +59,7 @@ static sds renderCanvas(lwCanvas *canvas) { case 1: ce = "0;90;100m"; break; /* Gray 1 */ case 2: ce = "0;37;47m"; break; /* Gray 2 */ case 3: ce = "0;97;107m"; break; /* White */ + default: ce = "0;30;40m"; break; /* Just for safety. */ } text = sdscatprintf(text,"\033[%s \033[0m",ce); }