mirror of https://github.com/pbatard/rufus.git
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
|
@ -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…
Reference in New Issue