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 --- CategoriesPanel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CategoriesPanel.c') diff --git a/CategoriesPanel.c b/CategoriesPanel.c index fe55a88a..8cb442e4 100644 --- a/CategoriesPanel.c +++ b/CategoriesPanel.c @@ -97,7 +97,7 @@ static HandlerResult CategoriesPanel_eventHandler(Panel* super, int ch) { break; } default: - if (isalpha(ch)) + if (ch < 255 && isalpha(ch)) result = Panel_selectByTyping(super, ch); if (result == BREAK_LOOP) result = IGNORED; -- cgit v1.2.3