diff options
author | Ron Yorston <rmy@pobox.com> | 2015-07-21 22:12:31 +0300 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-07-31 16:33:53 +0300 |
commit | ae1a9e899e0d4695834e8ce7348d41663abcef1e (patch) | |
tree | 7193580298574459aabb776779ce297a728edb02 /miscutils/less.c | |
parent | 670c3f7822e17c8bfdd9351fcfea071e696fc1d6 (diff) |
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/less.c')
-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 dd932c5ed..4cdfa3bbb 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); |