diff options
Diffstat (limited to 'ares/ares_getnameinfo.c')
-rw-r--r-- | ares/ares_getnameinfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ares/ares_getnameinfo.c b/ares/ares_getnameinfo.c index 73e537a87..71cf41d50 100644 --- a/ares/ares_getnameinfo.c +++ b/ares/ares_getnameinfo.c @@ -220,7 +220,8 @@ static void nameinfo_callback(void *arg, int status, struct hostent *host) *end = 0; } } - niquery->callback(niquery->arg, ARES_SUCCESS, host->h_name, service); + niquery->callback(niquery->arg, ARES_SUCCESS, (char *)(host->h_name), + service); return; } /* We couldn't find the host, but it's OK, we can use the IP */ |