mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
Use strtoull instead of 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.
This commit is contained in:
parent
ddcbe8ed81
commit
602a916e75
1 changed files with 1 additions and 1 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);
|
||||
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