diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-22 22:56:28 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-23 18:14:35 -0300 |
commit | 54f8d8154bf69d5f8477e3b067f41c6611a02944 (patch) | |
tree | 1d7ea03b4b58f627864cb1bda3a7167734377cf9 /CategoriesPanel.c | |
parent | ade7993fcb468433d28e569e16e90de4251114ab (diff) |
Do not trust isalpha(c) for values > 255.
Fixes #174.
Conflicts:
Panel.c
Diffstat (limited to 'CategoriesPanel.c')
-rw-r--r-- | CategoriesPanel.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |