summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ares_parse_ptr_reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_parse_ptr_reply.c b/ares_parse_ptr_reply.c
index 070bce8..cce6471 100644
--- a/ares_parse_ptr_reply.c
+++ b/ares_parse_ptr_reply.c
@@ -119,7 +119,7 @@ int ares_parse_ptr_reply(const unsigned char *abuf, int alen, const void *addr,
strncpy(aliases[aliascnt], rr_data, strlen(rr_data)+1);
aliascnt++;
if ((aliascnt%8)==0)
- aliases = (char **) realloc(aliases, (aliascnt/16+1) * sizeof(char *));
+ aliases = realloc(aliases, (aliascnt/16+1) * sizeof(char *));
}
if (rr_class == C_IN && rr_type == T_CNAME)