diff options
author | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:16 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2016-04-11 13:00:16 +0200 |
commit | c868e3f8d629e1caddff1a51a7d2dd04f49994a3 (patch) | |
tree | dee0881088acc628312dcaaff8209184f4a2560b /SignalsListBox.c | |
parent | d3c9975943df58e293359b87905d19ff1fd52061 (diff) | |
download | debian_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.c | 3 |
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) { |