diff options
author | 2015-10-22 23:55:51 +0000 | |
---|---|---|
committer | 2015-10-22 23:55:51 +0000 | |
commit | fb6201af5fe6574ff0daceb13f7708618fc29a86 (patch) | |
tree | c8b2111ee44ba5a17adaa5a818131084726a9e2f /lib/libc/net/inet_network.c | |
parent | Fix some bugs in the handling of the RTM_GET and RTM_CHANGE messages (diff) | |
download | wireguard-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.c | 4 |
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; |