diff --git a/src/metalink.c b/src/metalink.c index 986303de..25737b35 100644 --- a/src/metalink.c +++ b/src/metalink.c @@ -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"));