mirror of
https://frontier.innolan.net/rainlance/c-ares.git
synced 2025-10-06 19:13:09 +00:00
compiler warning fix
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user