summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/auth_subr.c4
-rw-r--r--lib/libc/net/inet_network.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/auth_subr.c b/lib/libc/gen/auth_subr.c
index 26d93b48c8c..0df70c4bf2c 100644
--- a/lib/libc/gen/auth_subr.c
+++ b/lib/libc/gen/auth_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth_subr.c,v 1.45 2015/09/14 16:09:13 tedu Exp $ */
+/* $OpenBSD: auth_subr.c,v 1.46 2015/10/22 23:55:51 mmcc Exp $ */
/*
* Copyright (c) 2000-2002,2004 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -363,7 +363,7 @@ auth_setenv(auth_session_t *as)
}
} else
if (!strncasecmp(line, BI_UNSETENV, sizeof(BI_UNSETENV)-1)) {
- if (isblank(line[sizeof(BI_UNSETENV) - 1])) {
+ if (isblank((unsigned char)line[sizeof(BI_UNSETENV) - 1])) {
/* only do it once! */
line[2] = 'd'; line[3] = 'i'; line[4] = 'd';
line += sizeof(BI_UNSETENV) - 1;
diff --git a/lib/libc/net/inet_network.c b/lib/libc/net/inet_network.c
index ef8f21b2800..7b0cf50e796 100644
--- a/lib/libc/net/inet_network.c
+++ b/lib/libc/net/inet_network.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet_network.c,v 1.12 2015/09/13 21:36:08 guenther Exp $ */
+/* $OpenBSD: inet_network.c,v 1.13 2015/10/22 23:55:51 mmcc Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -71,7 +71,7 @@ again:
*pp++ = val, cp++;
goto again;
}
- if (*cp && !isspace(*cp))
+ if (*cp && !isspace((unsigned char)*cp))
return (INADDR_NONE);
*pp++ = val;
n = pp - parts;