diff options
author | Ron Yorston | 2015-07-21 20:12:31 +0100 |
---|---|---|
committer | Denys Vlasenko | 2015-07-31 15:33:53 +0200 |
commit | ae1a9e899e0d4695834e8ce7348d41663abcef1e (patch) | |
tree | 7193580298574459aabb776779ce297a728edb02 /miscutils | |
parent | 670c3f7822e17c8bfdd9351fcfea071e696fc1d6 (diff) | |
download | busybox-ae1a9e899e0d4695834e8ce7348d41663abcef1e.zip busybox-ae1a9e899e0d4695834e8ce7348d41663abcef1e.tar.gz |
less: fix numeric input
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/less.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c index dd932c5..4cdfa3b 100644 --- a/miscutils/less.c +++ b/miscutils/less.c @@ -1314,7 +1314,7 @@ static void number_process(int first_digit) i = 1; while (i < sizeof(num_input)-1) { keypress = less_getch(i + 1); - if ((unsigned)keypress > 255 || !isdigit(num_input[i])) + if ((unsigned)keypress > 255 || !isdigit(keypress)) break; num_input[i] = keypress; bb_putchar(keypress); |