summaryrefslogtreecommitdiff
path: root/usr.bin/indent/indent.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 13:21:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 13:21:19 +0000
commit42f68a7a6d855d973bf3c59d10e6519e0240d4f2 (patch)
tree64c16d6722fec7697ed1e37a4adecbda0314e831 /usr.bin/indent/indent.c
parent9c87bfa9d5ea46fd4fe5c8edb947aec28e748573 (diff)
unsigned char casts for ctype
ok krw
Diffstat (limited to 'usr.bin/indent/indent.c')
-rw-r--r--usr.bin/indent/indent.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/indent/indent.c b/usr.bin/indent/indent.c
index 33a7f7835f7..df74916bd54 100644
--- a/usr.bin/indent/indent.c
+++ b/usr.bin/indent/indent.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: indent.c,v 1.22 2013/06/21 06:49:42 jsg Exp $ */
+/* $OpenBSD: indent.c,v 1.23 2013/11/26 13:21:17 deraadt Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -968,8 +968,9 @@ check_type:
e_code = chfont(&bodyf, &keywordf, e_code);
for (t_ptr = token; *t_ptr; ++t_ptr) {
CHECK_SIZE_CODE;
- *e_code++ = keywordf.allcaps && islower(*t_ptr)
- ? toupper(*t_ptr) : *t_ptr;
+ *e_code++ = keywordf.allcaps &&
+ islower((unsigned char)*t_ptr) ?
+ toupper((unsigned char)*t_ptr) : *t_ptr;
}
e_code = chfont(&keywordf, &bodyf, e_code);
}