Skip to content

Commit b03f7f4

Browse files
TianlongLiangKakhaber
authored andcommitted
avoid Windows perform newline translation (bytecodealliance#4128)
1 parent 8b1c177 commit b03f7f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test-tools/binarydump-tool/binarydump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ read_file_to_buffer(const char *filename, int *ret_size)
1515
FILE *file;
1616
int file_size, read_size;
1717

18-
if (!(file = fopen(filename, "r")))
18+
if (!(file = fopen(filename, "rb")))
1919
return NULL;
2020

2121
fseek(file, 0, SEEK_END);

0 commit comments

Comments
 (0)