From: Niki Roo Date: Sat, 14 May 2022 21:24:38 +0000 (+0200) Subject: MacOS user reported a bad fopen mode, try 1 to fix it X-Git-Url: https://git.nikiroo.be/?a=commitdiff_plain;h=779dc6d7bb67f30e3a1c0c4bc07c2ce68c98d6a2;p=nsub.git MacOS user reported a bad fopen mode, try 1 to fix it --- diff --git a/src/nsub/nsub_main.c b/src/nsub/nsub_main.c index 092978f..630605d 100644 --- a/src/nsub/nsub_main.c +++ b/src/nsub/nsub_main.c @@ -111,7 +111,7 @@ int main(int argc, char **argv) { FILE *out = stdout; if (!rep && out_file && !(out_file[0] == '-' && !out_file[1])) { - out = fopen(out_file, "wb"); + out = fopen(out_file, "w"); if (!in) { fprintf(stderr, "Cannot create output file: %s\n", out_file); rep = 3;