diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-22 22:56:28 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-03-22 22:56:28 -0300 |
commit | 442a0d33e43b93e675281de70d6eacf9a9d4b8f8 (patch) | |
tree | 12cc1262514276750e69f6d90e5e9b1fd454da51 /Panel.c | |
parent | 1e0c530a465662c4049a6ea93ecda6b006ba45bd (diff) |
Do not trust isalpha(c) for values > 255.
Fixes #174.
Diffstat (limited to 'Panel.c')
-rw-r--r-- | Panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |