summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/inet_network.c
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-10-22 23:55:51 +0000
committermmcc <mmcc@openbsd.org>2015-10-22 23:55:51 +0000
commitfb6201af5fe6574ff0daceb13f7708618fc29a86 (patch)
treec8b2111ee44ba5a17adaa5a818131084726a9e2f /lib/libc/net/inet_network.c
parentFix some bugs in the handling of the RTM_GET and RTM_CHANGE messages (diff)
downloadwireguard-openbsd-fb6201af5fe6574ff0daceb13f7708618fc29a86.tar.xz
wireguard-openbsd-fb6201af5fe6574ff0daceb13f7708618fc29a86.zip
Cast ctype function arguments to unsigned char.
ok guenther@
Diffstat (limited to 'lib/libc/net/inet_network.c')
-rw-r--r--lib/libc/net/inet_network.c4
1 files changed, 2 insertions, 2 deletions
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;