summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index 6b1584e2..211489bb 100644
--- a/htop.c
+++ b/htop.c
@@ -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++) {