summaryrefslogtreecommitdiffstats
path: root/contrib/bind/lib/irs/getnetent.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bind/lib/irs/getnetent.c')
-rw-r--r--contrib/bind/lib/irs/getnetent.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/contrib/bind/lib/irs/getnetent.c b/contrib/bind/lib/irs/getnetent.c
index 52aebe3..49810b7 100644
--- a/contrib/bind/lib/irs/getnetent.c
+++ b/contrib/bind/lib/irs/getnetent.c
@@ -16,7 +16,7 @@
*/
#if !defined(LINT) && !defined(CODECENTER)
-static const char rcsid[] = "$Id: getnetent.c,v 1.18 2000/12/23 08:14:53 vixie Exp $";
+static const char rcsid[] = "$Id: getnetent.c,v 1.19 2001/05/29 05:48:47 marka Exp $";
#endif
/* Imports */
@@ -259,10 +259,11 @@ fakeaddr(const char *name, int af, struct net_data *net_data) {
RES_SET_H_ERRNO(net_data->res, NETDB_INTERNAL);
return (NULL);
}
- if (!isascii(name[0]) || !isdigit(name[0]))
+ if (!isascii((unsigned char)(name[0])) ||
+ !isdigit((unsigned char)(name[0])))
return (NULL);
for (cp = name; *cp; ++cp)
- if (!isascii(*cp) || (!isdigit(*cp) && *cp != '.'))
+ if (!isascii(*cp) || (!isdigit((unsigned char)*cp) && *cp != '.'))
return (NULL);
if (*--cp == '.')
return (NULL);
OpenPOWER on IntegriCloud