From 773d4664ff8f31837374164b64b992b86fcc80f7 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 27 Aug 2017 06:40:39 -0700 Subject: Properly open the output file for writing --- utils/bsincgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/bsincgen.c b/utils/bsincgen.c index 40e487ba..e84f1edc 100644 --- a/utils/bsincgen.c +++ b/utils/bsincgen.c @@ -369,7 +369,7 @@ int main(int argc, char *argv[]) if(argc == 2) { - output = fopen(argv[1], "rb"); + output = fopen(argv[1], "wb"); if(!output) { fprintf(stderr, "Failed to open %s for writing\n", argv[1]); -- cgit v1.2.3