diff options
author | ache <ache@FreeBSD.org> | 1999-11-04 04:16:28 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-11-04 04:16:28 +0000 |
commit | 0284c44519bdd7850a5d1d4dec0fcf24f71b24e1 (patch) | |
tree | 06f60b8ad3061c4485404825978a40680015e710 /lib/libc/gen/getnetgrent.c | |
parent | 15b0a898a000650e584768bb887d6dd01258c28d (diff) | |
download | FreeBSD-src-0284c44519bdd7850a5d1d4dec0fcf24f71b24e1.zip FreeBSD-src-0284c44519bdd7850a5d1d4dec0fcf24f71b24e1.tar.gz |
Add unsigned char cast to isspace arg
Diffstat (limited to 'lib/libc/gen/getnetgrent.c')
-rw-r--r-- | lib/libc/gen/getnetgrent.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/gen/getnetgrent.c b/lib/libc/gen/getnetgrent.c index cc33d1f..a26c86c 100644 --- a/lib/libc/gen/getnetgrent.c +++ b/lib/libc/gen/getnetgrent.c @@ -32,6 +32,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #if defined(LIBC_SCCS) && !defined(lint) @@ -283,16 +285,16 @@ static int _listmatch(list, group, len) int glen = strlen(group); /* skip possible leading whitespace */ - while(isspace(*ptr)) + while(isspace((unsigned char)*ptr)) ptr++; while (ptr < list + len) { cptr = ptr; - while(*ptr != ',' && *ptr != '\0' && !isspace(*ptr)) + while(*ptr != ',' && *ptr != '\0' && !isspace((unsigned char)*ptr)) ptr++; if (strncmp(cptr, group, glen) == 0 && glen == (ptr - cptr)) return(1); - while(*ptr == ',' || isspace(*ptr)) + while(*ptr == ',' || isspace((unsigned char)*ptr)) ptr++; } |