diff options
author | 2013-11-24 23:51:28 +0000 | |
---|---|---|
committer | 2013-11-24 23:51:28 +0000 | |
commit | dfe5467e3c6b93ccc8be21818dca4babdc79fd90 (patch) | |
tree | 38c9171a2ed326bfcda1e4e5c4dd927317ae17a4 /lib/libc/gen/getusershell.c | |
parent | Increase NMBCLUSTERS a bit. Riding upon the kernel memory saved by the pmap (diff) | |
download | wireguard-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.c | 4 |
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'; } |