summaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenys Vlasenko2011-08-16 01:53:12 +0200
committerDenys Vlasenko2011-08-16 01:53:12 +0200
commit4f54168ea21216f1ca322d343a26ee3e568444d9 (patch)
tree586104490f9111340b984e09e6752b30e59a6c22 /miscutils
parentc21c310e4646579d34bb9db25745b1121dc364d5 (diff)
downloadbusybox-4f54168ea21216f1ca322d343a26ee3e568444d9.zip
busybox-4f54168ea21216f1ca322d343a26ee3e568444d9.tar.gz
less: fix for screen size detection
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/less.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/miscutils/less.c b/miscutils/less.c
index 9543fb9..2c6a793 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -990,7 +990,8 @@ static int64_t less_getch(int pos)
*/
if (key >= 0 && key < ' ' && key != 0x0d && key != 8)
goto again;
- return key;
+
+ return key64;
}
static char* less_gets(int sz)