MacOS user reported a bad fopen mode, try 1 to fix it
authorNiki Roo <niki@nikiroo.be>
Sat, 14 May 2022 21:24:38 +0000 (23:24 +0200)
committerNiki Roo <niki@nikiroo.be>
Sat, 14 May 2022 21:24:38 +0000 (23:24 +0200)
src/nsub/nsub_main.c

index 092978f27e51e63618eb317314b324d7a1c2fca4..630605d8000a580fb2781791b6bd9909689a9935 100644 (file)
@@ -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;