aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-08-27 06:40:39 -0700
committerChris Robinson <[email protected]>2017-08-27 06:40:39 -0700
commit773d4664ff8f31837374164b64b992b86fcc80f7 (patch)
tree140955d3484e432d4ce15bf4462954c6e759becf /utils
parent72e3398baf59673bae22a5a4cd1500b3ceec3dd6 (diff)
Properly open the output file for writing
Diffstat (limited to 'utils')
-rw-r--r--utils/bsincgen.c2
1 files changed, 1 insertions, 1 deletions
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]);