ares_set_servers_csv: use ISDIGIT

The IS*() set of macros are preferred to the regular is*() functions as
they help us avoid the most common pitfalls.
pull/1/head
Daniel Stenberg 15 years ago
parent 8d33804971
commit cef3a4c7aa
  1. 2
      ares_options.c

@ -178,7 +178,7 @@ int ares_set_servers_csv(ares_channel channel,
while (pp > start_host) {
if (*pp == ':')
break; /* yes */
if (!isdigit((int)(*pp))) {
if (!ISDIGIT(*pp)) {
/* Found end of digits before we found :, so wasn't a port */
pp = ptr;
break;

Loading…
Cancel
Save