mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:23:39 +03:00
compiler warning fix
This commit is contained in:
parent
01c4fba15c
commit
bc2183b440
3 changed files with 5 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue