From edf807a5b3a99d0a4147f9f541f3ad68655129ce Mon Sep 17 00:00:00 2001 From: XOR Date: Sat, 30 Sep 2023 16:49:50 +0200 Subject: [PATCH] Open eipa assembly in binary mode, to make LF files work in Windows --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index dc77423..a41e130 100755 --- a/src/main.c +++ b/src/main.c @@ -127,7 +127,7 @@ int main(int argc, char **argv) // Tokenize the EIPA Assembly FILE *assembly_file; - assembly_file = fopen(arguments.input_file, "r"); + assembly_file = fopen(arguments.input_file, "rb"); if (assembly_file == NULL) { printf("Error: Couldn't open input file\n");