From bf56bf4560cef3c1591487e7df1f2cb5e5ad0303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jernej=20Simon=C4=8Di=C4=8D?= Date: Fri, 11 Dec 2015 09:58:30 +0100 Subject: [PATCH] * src/metalink.c: Specify 'rb' as mode to open file --- src/metalink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"));