Open eipa assembly in binary mode, to make LF files work in Windows

This commit is contained in:
XOR 2023-09-30 16:49:50 +02:00
parent 38d14eec25
commit edf807a5b3

View file

@ -127,7 +127,7 @@ int main(int argc, char **argv)
// Tokenize the EIPA Assembly // Tokenize the EIPA Assembly
FILE *assembly_file; FILE *assembly_file;
assembly_file = fopen(arguments.input_file, "r"); assembly_file = fopen(arguments.input_file, "rb");
if (assembly_file == NULL) if (assembly_file == NULL)
{ {
printf("Error: Couldn't open input file\n"); printf("Error: Couldn't open input file\n");