summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 13:16:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 13:16:19 +0000
commit60adb56e9c39b26c1401c07dc1d1c8f79489daed (patch)
treed87476cccb83d1d990857c6ba9b33994294c5869 /lib
parentd58254f92d43c90aec234384fa8d17eed8c2f72b (diff)
unsigned char cast for ctype; ok guenther
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/regex/regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c
index b8e5853ec34..109b4a21744 100644
--- a/lib/libc/regex/regcomp.c
+++ b/lib/libc/regex/regcomp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: regcomp.c,v 1.22 2013/04/17 17:39:29 tedu Exp $ */
+/* $OpenBSD: regcomp.c,v 1.23 2013/11/26 13:16:18 deraadt Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
* Copyright (c) 1992, 1993, 1994
@@ -759,7 +759,7 @@ p_b_cclass(struct parse *p, cset *cs)
char *u;
char c;
- while (MORE() && isalpha(PEEK()))
+ while (MORE() && isalpha((uch)PEEK()))
NEXT();
len = p->next - sp;
for (cp = cclasses; cp->name != NULL; cp++)