From 54f8d8154bf69d5f8477e3b067f41c6611a02944 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sun, 22 Mar 2015 22:56:28 -0300 Subject: Do not trust isalpha(c) for values > 255. Fixes #174. Conflicts: Panel.c --- AvailableColumnsPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'AvailableColumnsPanel.c') diff --git a/AvailableColumnsPanel.c b/AvailableColumnsPanel.c index 70d75807..6865b8bc 100644 --- a/AvailableColumnsPanel.c +++ b/AvailableColumnsPanel.c @@ -54,7 +54,7 @@ static HandlerResult AvailableColumnsPanel_eventHandler(Panel* super, int ch) { } default: { - if (isalpha(ch)) + if (ch < 255 && isalpha(ch)) result = Panel_selectByTyping(super, ch); break; } -- cgit v1.2.3