mirror of
https://github.com/mirror/wget.git
synced 2025-03-13 11:20:19 +08:00
* src/metalink.c: Specify 'rb' as mode to open file
This commit is contained in:
parent
3eddf5c173
commit
bf56bf4560
@ -168,7 +168,7 @@ retrieve_from_metalink (const metalink_t* metalink)
|
||||
FILE *local_file;
|
||||
|
||||
/* Check the digest. */
|
||||
local_file = fopen (filename, "r");
|
||||
local_file = fopen (filename, "rb");
|
||||
if (!local_file)
|
||||
{
|
||||
logprintf (LOG_NOTQUIET, _("Could not open downloaded file.\n"));
|
||||
|
Loading…
Reference in New Issue
Block a user