diff options
Diffstat (limited to 'usr.bin/cap_mkdb')
-rw-r--r-- | usr.bin/cap_mkdb/getinfo.c | 6 |
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; |