From ba3842761e8bc51ab02d5e14f6cb8803861f7a4d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 4 Dec 2000 15:15:03 +0000 Subject: don't allow printing iso8859-1 nonprintable highascii chars. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@959 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fe-text/gui-windows.c') diff --git a/src/fe-text/gui-windows.c b/src/fe-text/gui-windows.c index 02f225b8..e726715d 100644 --- a/src/fe-text/gui-windows.c +++ b/src/fe-text/gui-windows.c @@ -465,7 +465,7 @@ static void single_line_draw(GUI_WINDOW_REC *gui, int ypos, continue; } - if ((unsigned char) *text >= 32) + if (((unsigned char) *text & 127) >= 32) waddch(cwin, (unsigned char) *text); else { /* low-ascii */ -- cgit v1.2.3