mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-17 00:24:27 -04:00
[misc] prefer strtol/strtoull over atol/atoll
* This means we don't need to worry about conversion issues regarding signedess. In addition, the behavior will no longer be undefined if for some reason the conversion cannot happen. * Closes #2104.
This commit is contained in:
parent
2bc1428975
commit
fab095c043
3 changed files with 8 additions and 8 deletions
|
@ -428,7 +428,7 @@ uint64_t DownloadToFileOrBuffer(const char* url, const char* file, BYTE** buffer
|
|||
uprintf("Unable to retrieve file length: %s", WinInetErrorString());
|
||||
goto out;
|
||||
}
|
||||
total_size = (uint64_t)atoll(strsize);
|
||||
total_size = strtoull(strsize, NULL, 10);
|
||||
if (hProgressDialog != NULL) {
|
||||
char msg[128];
|
||||
uprintf("File length: %s", SizeToHumanReadable(total_size, FALSE, FALSE));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue