summaryrefslogtreecommitdiff
path: root/inet_net_pton.c
diff options
context:
space:
mode:
Diffstat (limited to 'inet_net_pton.c')
-rw-r--r--inet_net_pton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/inet_net_pton.c b/inet_net_pton.c
index 8c78a0b..49bac69 100644
--- a/inet_net_pton.c
+++ b/inet_net_pton.c
@@ -86,7 +86,7 @@ inet_net_pton_ipv4(const char *src, unsigned char *dst, size_t size)
dirty = 0;
src++; /* skip x or X. */
while ((ch = *src++) != '\0' && ISXDIGIT(ch)) {
- if (isupper(ch))
+ if (ISUPPER(ch))
ch = tolower(ch);
n = (int)(strchr(xdigits, ch) - xdigits);
if (dirty == 0)