Skip to content

Commit 48a87dc

Browse files
avoid Windows perform newline translation (#4128)
1 parent 412631a commit 48a87dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)