mirror of
https://github.com/curl/curl.git
synced 2026-04-15 02:01:40 +03:00
tool_operate: use curlx_str_number intead of atoi
For consistency. This instance is for debug-only code and is not important. Closes #19480
This commit is contained in:
parent
4841e4290d
commit
4bb6a5d50f
1 changed files with 4 additions and 3 deletions
|
|
@ -310,10 +310,11 @@ static CURLcode pre_transfer(struct per_transfer *per)
|
|||
#ifdef DEBUGBUILD
|
||||
/* allow dedicated test cases to override */
|
||||
{
|
||||
char *ev = getenv("CURL_UPLOAD_SIZE");
|
||||
const char *ev = getenv("CURL_UPLOAD_SIZE");
|
||||
if(ev) {
|
||||
int sz = atoi(ev);
|
||||
uploadfilesize = (curl_off_t)sz;
|
||||
curl_off_t sz;
|
||||
curlx_str_number(&ev, &sz, CURL_OFF_T_MAX);
|
||||
uploadfilesize = sz;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue