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

2
htop.c
View File

@ -381,7 +381,7 @@ int main(int argc, char** argv) {
continue;
}
if (isdigit((char)ch)) {
if (ch < 255 && isdigit((char)ch)) {
if (Panel_size(panel) == 0) continue;
pid_t pid = ch-48 + acc;
for (int i = 0; i < ProcessList_size(pl); i++) {