Christian Göttsche
2020-09-11 19:27:56 +02:00
committed by cgzones
parent 1f5bd5c4c8
commit 8a849bc85a
6 changed files with 6 additions and 6 deletions

View File

@ -411,7 +411,7 @@ HandlerResult Panel_selectByTyping(Panel* this, int ch) {
this->eventHandlerState = xCalloc(100, sizeof(char));
char* buffer = this->eventHandlerState;
if (ch > 0 && ch < 255 && isalnum(ch)) {
if (0 < ch && ch < 255 && isalnum((unsigned char)ch)) {
int len = strlen(buffer);
if (len < 99) {
buffer[len] = ch;