summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getusershell.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-24 23:51:28 +0000
committerderaadt <deraadt@openbsd.org>2013-11-24 23:51:28 +0000
commitdfe5467e3c6b93ccc8be21818dca4babdc79fd90 (patch)
tree38c9171a2ed326bfcda1e4e5c4dd927317ae17a4 /lib/libc/gen/getusershell.c
parentIncrease NMBCLUSTERS a bit. Riding upon the kernel memory saved by the pmap (diff)
downloadwireguard-openbsd-dfe5467e3c6b93ccc8be21818dca4babdc79fd90.tar.xz
wireguard-openbsd-dfe5467e3c6b93ccc8be21818dca4babdc79fd90.zip
most obvious unsigned char casts for ctype
ok jca krw ingo
Diffstat (limited to 'lib/libc/gen/getusershell.c')
-rw-r--r--lib/libc/gen/getusershell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/getusershell.c b/lib/libc/gen/getusershell.c
index f2520151afc..a46fd02571f 100644
--- a/lib/libc/gen/getusershell.c
+++ b/lib/libc/gen/getusershell.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getusershell.c,v 1.10 2013/09/30 12:02:34 millert Exp $ */
+/* $OpenBSD: getusershell.c,v 1.11 2013/11/24 23:51:29 deraadt Exp $ */
/*
* Copyright (c) 1985, 1993
* The Regents of the University of California. All rights reserved.
@@ -124,7 +124,7 @@ initshells(void)
if (*cp == '#' || *cp == '\0')
continue;
*sp++ = cp;
- while (!isspace(*cp) && *cp != '#' && *cp != '\0')
+ while (!isspace((unsigned char)*cp) && *cp != '#' && *cp != '\0')
cp++;
*cp++ = '\0';
}