mirror of
https://github.com/curl/curl.git
synced 2026-08-24 21:43:32 +03:00
atoi: remove atoi usage
This commit is contained in:
parent
cbe67a1b71
commit
5db0a412ff
12 changed files with 36 additions and 22 deletions
|
|
@ -379,7 +379,7 @@ static int ftp_endofresp(struct pingpong *pp,
|
|||
size_t len = pp->nread_resp;
|
||||
|
||||
if((len > 3) && LASTLINE(line)) {
|
||||
*code = atoi(line);
|
||||
*code = strtol(line, NULL, 10);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue