summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/rcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/rcmd.c')
-rw-r--r--lib/libc/net/rcmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index 31a60a6..0424a2a 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -503,7 +503,7 @@ __icheckhost(raddr, lhost)
register char **pp;
/* Try for raw ip address first. */
- if (isdigit(*lhost) && (u_int32_t)(laddr = inet_addr(lhost)) != -1)
+ if (isdigit((unsigned char)*lhost) && (u_int32_t)(laddr = inet_addr(lhost)) != -1)
return (raddr == laddr);
/* Better be a hostname. */
OpenPOWER on IntegriCloud