From 779dc6d7bb67f30e3a1c0c4bc07c2ce68c98d6a2 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Sat, 14 May 2022 23:24:38 +0200 Subject: [PATCH] MacOS user reported a bad fopen mode, try 1 to fix it --- src/nsub/nsub_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.27.0