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-22 22:56:28 -0300
commit442a0d33e43b93e675281de70d6eacf9a9d4b8f8 (patch)
tree12cc1262514276750e69f6d90e5e9b1fd454da51 /Panel.c
parent1e0c530a465662c4049a6ea93ecda6b006ba45bd (diff)
Do not trust isalpha(c) for values > 255.
Fixes #174.
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 4355b1e2..681e9ca5 100644
--- a/Panel.c
+++ b/Panel.c
@@ -427,7 +427,7 @@ HandlerResult Panel_selectByTyping(Panel* this, int ch) {
if (!this->eventHandlerBuffer)
this->eventHandlerBuffer = calloc(100, 1);
- if (isalnum(ch)) {
+ if (ch < 255 && isalnum(ch)) {
int len = strlen(this->eventHandlerBuffer);
if (len < 99) {
this->eventHandlerBuffer[len] = ch;

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