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
@@ -261,7 +261,7 @@ process_file(char* filename) {
g_file = NULL;
}
g_filename = filename;
g_file = fopen(g_filename, "r");
g_file = fopen(g_filename, "rb");
if (!g_file) {
fprintf(stderr, "main: could not open %s\n", g_filename);
return false;