summaryrefslogtreecommitdiff
path: root/usr.sbin/config/mkheaders.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-23 17:38:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-23 17:38:16 +0000
commit0a53ec2461502f772a9dd430223ba7a507094c59 (patch)
treefd97128a5cd38cc401ea77935a38e7cade49f72c /usr.sbin/config/mkheaders.c
parentcd9f8458f2105861de013104373fdf11870cced9 (diff)
unsigned char casts for ctype
ok jca
Diffstat (limited to 'usr.sbin/config/mkheaders.c')
-rw-r--r--usr.sbin/config/mkheaders.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/config/mkheaders.c b/usr.sbin/config/mkheaders.c
index 0572f604bdf..6f29be63686 100644
--- a/usr.sbin/config/mkheaders.c
+++ b/usr.sbin/config/mkheaders.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mkheaders.c,v 1.19 2011/10/02 22:20:49 edd Exp $ */
+/* $OpenBSD: mkheaders.c,v 1.20 2013/11/23 17:38:15 deraadt Exp $ */
/* $NetBSD: mkheaders.c,v 1.12 1997/02/02 21:12:34 thorpej Exp $ */
/*
@@ -208,7 +208,8 @@ cntname(const char *src)
dst = buf;
*dst++ = 'N';
while ((c = *src++) != 0)
- *dst++ = islower(c) ? toupper(c) : c;
+ *dst++ = islower((unsigned char)c) ?
+ toupper((unsigned char)c) : c;
*dst = 0;
return (buf);
}