summaryrefslogtreecommitdiff
path: root/bin/ksh/emacs.c
diff options
context:
space:
mode:
authormmcc <mmcc@cvs.openbsd.org>2015-10-16 17:14:05 +0000
committermmcc <mmcc@cvs.openbsd.org>2015-10-16 17:14:05 +0000
commitf714cdb6c71ef2763108a2cc525ab35950418074 (patch)
treeb2b1810c01f64881049a7e026e624adb9c25e2eb /bin/ksh/emacs.c
parent23776b346f44419a68aaee49fbce616d6538bf3b (diff)
Cast iscntrl()'s arg to unsigned char.
ok nicm@
Diffstat (limited to 'bin/ksh/emacs.c')
-rw-r--r--bin/ksh/emacs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c
index eaf5bbd7693..8597b80306a 100644
--- a/bin/ksh/emacs.c
+++ b/bin/ksh/emacs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: emacs.c,v 1.56 2015/10/10 15:31:00 millert Exp $ */
+/* $OpenBSD: emacs.c,v 1.57 2015/10/16 17:14:04 mmcc Exp $ */
/*
* Emacs-like command line editing and history
@@ -1257,7 +1257,7 @@ kb_decode(const char *s)
l[0] = '\0';
for (i = 0; i < strlen(s); i++) {
- if (iscntrl(s[i])) {
+ if (iscntrl((unsigned char)s[i])) {
l[at++] = '^';
l[at++] = UNCTRL(s[i]);
} else