aboutsummaryrefslogtreecommitdiffstats
path: root/SignalsListBox.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:16 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:16 +0200
commitc868e3f8d629e1caddff1a51a7d2dd04f49994a3 (patch)
treedee0881088acc628312dcaaff8209184f4a2560b /SignalsListBox.c
parentd3c9975943df58e293359b87905d19ff1fd52061 (diff)
downloaddebian_htop-c868e3f8d629e1caddff1a51a7d2dd04f49994a3.tar.gz
debian_htop-c868e3f8d629e1caddff1a51a7d2dd04f49994a3.tar.bz2
debian_htop-c868e3f8d629e1caddff1a51a7d2dd04f49994a3.zip
Imported Upstream version 0.5.1upstream/0.5.1
Diffstat (limited to 'SignalsListBox.c')
-rw-r--r--SignalsListBox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/SignalsListBox.c b/SignalsListBox.c
index 591483b..a087db0 100644
--- a/SignalsListBox.c
+++ b/SignalsListBox.c
@@ -55,7 +55,8 @@ HandlerResult SignalsListBox_eventHandler(ListBox* super, int ch) {
SignalsListBox* this = (SignalsListBox*) super;
int size = ListBox_getSize(super);
- if (isdigit(ch)) {
+
+ if (ch <= 255 && isdigit(ch)) {
int signal = ch-48 + this->state;
for (int i = 0; i < size; i++)
if (((Signal*) ListBox_get(super, i))->number == signal) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy