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:
Rose 2022-12-05 11:57:41 -05:00 committed by GitHub
parent ddcbe8ed81
commit 602a916e75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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));