summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/rcmd.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-11-04 04:52:34 +0000
committerache <ache@FreeBSD.org>1999-11-04 04:52:34 +0000
commit7cff08527c03845203ebff80a4804022572ab3c5 (patch)
tree186cb3a96b22277ec6cca36d40398d60e5cf47f3 /lib/libc/net/rcmd.c
parentfd2f05f5b2984ac3527569a6e325edb0c81e6511 (diff)
downloadFreeBSD-src-7cff08527c03845203ebff80a4804022572ab3c5.zip
FreeBSD-src-7cff08527c03845203ebff80a4804022572ab3c5.tar.gz
Add unsigned char cast to is[x]digit
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