From 2aaf8a7206211f378bc093f92a63ee36f02e23f4 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 26 Nov 2013 18:47:07 +0000 Subject: change a local char * to unsigned, to ease ctype handling ok krw --- usr.bin/cap_mkdb/getinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/cap_mkdb') 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; -- cgit v1.2.3