diff options
author | Xin LI <delphij@FreeBSD.org> | 2017-04-29 06:30:21 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2017-04-29 06:30:21 +0000 |
commit | 6f90225e8378d85045013553763bd7483670441c (patch) | |
tree | 185b77b1a31a3ec3a39749f691ca4a8c273e9e1c /ttyin.c | |
parent | 9c83c2751d26fe2e059d6956f0398b56ed919a6a (diff) | |
download | src-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |