mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-12 12:14:36 +03:00
Do not trust isalpha(c) for values > 255.
Fixes #174. Conflicts: Panel.c
This commit is contained in:
2
IncSet.c
2
IncSet.c
@ -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;
|
||||
|
Reference in New Issue
Block a user