Do not trust isalpha(c) for values > 255.

Fixes #174.

Conflicts:
	Panel.c
This commit is contained in:
Hisham Muhammad
2015-03-22 22:56:28 -03:00
parent ade7993fcb
commit 54f8d8154b
7 changed files with 7 additions and 7 deletions

View File

@ -151,7 +151,7 @@ bool IncSet_handleKey(IncSet* this, int ch, Panel* panel, IncMode_GetPanelValue
}
}
doSearch = false;
} else if (isprint((char)ch) && (mode->index < INCMODE_MAX)) {
} else if (ch < 255 && isprint((char)ch) && (mode->index < INCMODE_MAX)) {
mode->buffer[mode->index] = ch;
mode->index++;
mode->buffer[mode->index] = 0;