artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5497a40
)
Cast iscntrl()'s arg to unsigned char.
author
mmcc
<mmcc@openbsd.org>
Fri, 16 Oct 2015 17:14:04 +0000
(17:14 +0000)
committer
mmcc
<mmcc@openbsd.org>
Fri, 16 Oct 2015 17:14:04 +0000
(17:14 +0000)
ok nicm@
bin/ksh/emacs.c
patch
|
blob
|
history
diff --git
a/bin/ksh/emacs.c
b/bin/ksh/emacs.c
index
eaf5bbd
..
8597b80
100644
(file)
--- a/
bin/ksh/emacs.c
+++ b/
bin/ksh/emacs.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: emacs.c,v 1.5
6 2015/10/10 15:31:00 millert Exp $
*/
+/* $OpenBSD: emacs.c,v 1.5
7 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