mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:33:31 +03:00
atoi: remove atoi usage
This commit is contained in:
parent
cbe67a1b71
commit
5db0a412ff
12 changed files with 36 additions and 22 deletions
|
|
@ -4155,7 +4155,7 @@ static CURLcode parse_proxy(struct SessionHandle *data,
|
|||
*prox_portno = 0x0; /* cut off number from host name */
|
||||
prox_portno ++;
|
||||
/* now set the local port number */
|
||||
conn->port = atoi(prox_portno);
|
||||
conn->port = strtol(prox_portno, NULL, 10);
|
||||
}
|
||||
else {
|
||||
/* without a port number after the host name, some people seem to use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue