aboutsummaryrefslogtreecommitdiff
path: root/ttyin.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2017-04-29 06:30:21 +0000
committerXin LI <delphij@FreeBSD.org>2017-04-29 06:30:21 +0000
commit6f90225e8378d85045013553763bd7483670441c (patch)
tree185b77b1a31a3ec3a39749f691ca4a8c273e9e1c /ttyin.c
parent9c83c2751d26fe2e059d6956f0398b56ed919a6a (diff)
downloadsrc-6f90225e8378d85045013553763bd7483670441c.tar.gz
src-6f90225e8378d85045013553763bd7483670441c.zip
Vendor import of less v491.vendor/less/v491
Notes
Notes: svn path=/vendor/less/dist/; revision=317581 svn path=/vendor/less/v491/; revision=317582; tag=vendor/less/v491
Diffstat (limited to 'ttyin.c')
-rw-r--r--ttyin.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ttyin.c b/ttyin.c
index 58892e145619..87cffc28eb26 100644
--- a/ttyin.c
+++ b/ttyin.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 1984-2016 Mark Nudelman
+ * Copyright (C) 1984-2017 Mark Nudelman
*
* You may distribute under the terms of either the GNU General Public
* License or the Less License, as specified in the README file.
@@ -120,7 +120,11 @@ getchr()
if (c == '\003')
return (READ_INTR);
#else
- result = iread(tty, &c, sizeof(char));
+ {
+ unsigned char uc;
+ result = iread(tty, &uc, sizeof(char));
+ c = (char) uc;
+ }
if (result == READ_INTR)
return (READ_INTR);
if (result < 0)