summaryrefslogtreecommitdiff
path: root/bin/ksh/lex.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-17 16:37:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-12-17 16:37:07 +0000
commita53cb7fdc46c7a180410eccb10b19e298187c2a7 (patch)
tree9272ca884c04d5c12b9743ee620f6aa92d77a777 /bin/ksh/lex.c
parentc527932147a1813dbe707be41e9eb2bb40548d97 (diff)
ctype cleanups. Repeated re-audits of this sensitive area by okan and
myself, with a variety of other people spending some time as well. Thanks.
Diffstat (limited to 'bin/ksh/lex.c')
-rw-r--r--bin/ksh/lex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/lex.c b/bin/ksh/lex.c
index d0b6addd3d5..c27462e1876 100644
--- a/bin/ksh/lex.c
+++ b/bin/ksh/lex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lex.c,v 1.48 2013/11/12 04:36:02 deraadt Exp $ */
+/* $OpenBSD: lex.c,v 1.49 2013/12/17 16:37:06 deraadt Exp $ */
/*
* lexical analysis and source input
@@ -986,7 +986,7 @@ getsc__(void)
source->flags |= s->flags & SF_ALIAS;
s = source;
} else if (*s->u.tblp->val.s &&
- isspace(strchr(s->u.tblp->val.s, 0)[-1])) {
+ isspace((unsigned char)strchr(s->u.tblp->val.s, 0)[-1])) {
source = s = s->next; /* pop source stack */
/* Note that this alias ended with a space,
* enabling alias expansion on the following