summaryrefslogtreecommitdiffstats
path: root/lib/libedit/key.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-08-11 19:20:30 +0000
committerache <ache@FreeBSD.org>1996-08-11 19:20:30 +0000
commit3c7673013285ac763e247767e237240275819280 (patch)
tree9a2a7c594f9c5a81136b03380da55a891b29c1aa /lib/libedit/key.c
parent8aa8a81b2a0e28709d18a8cb2d85b80f6329e2c1 (diff)
downloadFreeBSD-src-3c7673013285ac763e247767e237240275819280.zip
FreeBSD-src-3c7673013285ac763e247767e237240275819280.tar.gz
8bit cleaness (ctype) fixes
Diffstat (limited to 'lib/libedit/key.c')
-rw-r--r--lib/libedit/key.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libedit/key.c b/lib/libedit/key.c
index 302b6bd..a84f413 100644
--- a/lib/libedit/key.c
+++ b/lib/libedit/key.c
@@ -640,6 +640,8 @@ key__decode_char(buf, cnt, ch)
char *buf;
int cnt, ch;
{
+ ch &= 0xFF;
+
if (ch == 0) {
buf[cnt++] = '^';
buf[cnt] = '@';
OpenPOWER on IntegriCloud