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