-/* $OpenBSD: inet.c,v 1.20 2015/01/16 16:48:51 deraadt Exp $ */
+/* $OpenBSD: inet.c,v 1.21 2015/10/24 05:26:00 mmcc Exp $ */
/*
* Copyright (c) 1994, 1995, 1996, 1997, 1998
continue;
if (ISLOOPBACK(ifa->ifa_name, ifa->ifa_flags))
continue;
- for (cp = ifa->ifa_name; !isdigit(*cp); ++cp)
+ for (cp = ifa->ifa_name; !isdigit((unsigned char)*cp); ++cp)
continue;
n = atoi(cp);
if (n < minunit) {
ISLOOPBACK(ifr.ifr_name, ifr.ifr_flags))
continue;
- for (cp = ifrp->ifr_name; !isdigit(*cp); ++cp)
+ for (cp = ifrp->ifr_name; !isdigit((unsigned char)*cp); ++cp)
continue;
n = atoi(cp);
if (n < minunit) {