diff options
Diffstat (limited to 'ares/ares_getnameinfo.c')
-rw-r--r-- | ares/ares_getnameinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_getnameinfo.c b/ares/ares_getnameinfo.c index 9c48e8f98..5499705b8 100644 --- a/ares/ares_getnameinfo.c +++ b/ares/ares_getnameinfo.c @@ -305,7 +305,7 @@ static char *lookup_service(unsigned short port, int flags, strcpy(tmpbuf, sep->s_name); else /* get port as a string */ - sprintf(tmpbuf, "%u", (unsigned short)ntohs(port)); + sprintf(tmpbuf, "%u", (unsigned int)ntohs(port)); if (strlen(tmpbuf) < buflen) /* return it if buffer big enough */ strcpy(buf, tmpbuf); |