Add "b" (for "binary") to fopen calls

Updates #50
This commit is contained in:
Nigel Tao committed 2021-07-07 20:28:35 +10:00
1 parent d0451190ca
commit 816475b285
6 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -671,7 +671,7 @@ read_file(wuffs_base__io_buffer* dst, const char* path) {
original_path);
}
FILE* f = fopen(path, "r");
FILE* f = fopen(path, "rb");
if (!f) {
RETURN_FAIL("read_file(\"%s\"): %s (errno=%d)", path, strerror(errno),
errno);