compiler warning fix

pull/1/head
Yang Tse 18 years ago
parent 5908d58da3
commit 12393dcd5c
  1. 2
      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);

Loading…
Cancel
Save