From fd67099a1ab75873d6ee1c1fba0d17a3449bea19 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Mon, 22 Jul 2019 21:42:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20file=20open=20on=20Windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fileReader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileReader.c b/src/fileReader.c index 8eee446..9da2626 100644 --- a/src/fileReader.c +++ b/src/fileReader.c @@ -12,7 +12,7 @@ void initFileReader(char path[], unsigned long offset) { file.name = path; - file.filePointer = fopen(file.name, "r"); + file.filePointer = fopen(file.name, "rb"); if (file.filePointer == NULL) { fprintf(stderr, "Could not open file \"%s\" for reading: %s\n", file.name, strerror(errno)); errorAndExit();