aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2015-07-21 20:12:31 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2015-07-31 15:33:53 +0200
commitae1a9e899e0d4695834e8ce7348d41663abcef1e (patch)
tree7193580298574459aabb776779ce297a728edb02
parent670c3f7822e17c8bfdd9351fcfea071e696fc1d6 (diff)
downloadbusybox-ae1a9e899e0d4695834e8ce7348d41663abcef1e.tar.gz
less: fix numeric input
Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--miscutils/less.c2
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);