summaryrefslogtreecommitdiffstats
path: root/Panel.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-03-22 22:56:28 -0300
committerHisham Muhammad <hisham@gobolinux.org>2015-03-23 18:14:35 -0300
commit54f8d8154bf69d5f8477e3b067f41c6611a02944 (patch)
tree1d7ea03b4b58f627864cb1bda3a7167734377cf9 /Panel.c
parentade7993fcb468433d28e569e16e90de4251114ab (diff)
Do not trust isalpha(c) for values > 255.
Fixes #174. Conflicts: Panel.c
Diffstat (limited to 'Panel.c')
-rw-r--r--Panel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Panel.c b/Panel.c
index 42cbbfce..42c5ef2f 100644
--- a/Panel.c
+++ b/Panel.c
@@ -431,7 +431,7 @@ HandlerResult Panel_selectByTyping(Panel* this, int ch) {
this->eventHandlerState = calloc(100, 1);
char* buffer = this->eventHandlerState;
- if (isalnum(ch)) {
+ if (ch < 255 && isalnum(ch)) {
int len = strlen(buffer);
if (len < 99) {
buffer[len] = ch;

© 2014-2024 Faster IT GmbH | imprint | privacy policy