summaryrefslogtreecommitdiff
path: root/usr.bin/cap_mkdb
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 18:47:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 18:47:07 +0000
commit2aaf8a7206211f378bc093f92a63ee36f02e23f4 (patch)
tree96a8792d8ed967bdeffd81aae3a7b2aa658d8cf0 /usr.bin/cap_mkdb
parentc7adf8d39a2d4a970cc7ac8b70b53d9d05a7a0d6 (diff)
change a local char * to unsigned, to ease ctype handling
ok krw
Diffstat (limited to 'usr.bin/cap_mkdb')
-rw-r--r--usr.bin/cap_mkdb/getinfo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cap_mkdb/getinfo.c b/usr.bin/cap_mkdb/getinfo.c
index 003fe580735..228cb448afc 100644
--- a/usr.bin/cap_mkdb/getinfo.c
+++ b/usr.bin/cap_mkdb/getinfo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getinfo.c,v 1.18 2011/07/22 01:11:05 millert Exp $ */
+/* $OpenBSD: getinfo.c,v 1.19 2013/11/26 18:47:06 deraadt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -235,7 +235,7 @@ getent(char **cap, u_int *len, char **db_array, FILE *fp, char *name, int depth)
bp = buf;
}
- c = *bp++;
+ c = (unsigned char)*bp++;
if (c == '\n') {
if (bp >= b_end) {
size_t n;
@@ -598,7 +598,7 @@ igetnext(char **cap, char **db_array)
bp = buf;
}
- c = *bp++;
+ c = (unsigned char)*bp++;
if (c == '\n') {
if (bp >= b_end) {
size_t n;