From aece218cf340a863f0330d578570eba0dda4cd0b Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Tue, 28 Oct 2014 20:52:35 +0100 Subject: [PATCH] fix segfault in miniview due to large codepoints --- src/bin/miniview.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/miniview.c b/src/bin/miniview.c index f47fb383..a468538d 100644 --- a/src/bin/miniview.c +++ b/src/bin/miniview.c @@ -115,8 +115,7 @@ _draw_cell(const Termpty *ty, unsigned int *pixel, const Termcell *cell, unsigne if (bgext) *pixel = colors[bg + 256]; else if (bg && ((bg % 12) != COL_INVIS)) *pixel = colors[bg]; - else if ((codepoint > 32) && (codepoint < 0x00110000) && - (!isspace(codepoint))) + else if ((codepoint > 32) && (codepoint < 0x00110000)) { if (fgext) *pixel = colors[fg + 256]; else *pixel = colors[fg];