diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-11-02 10:33:15 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-11-02 10:33:15 +0100 |
commit | 789835544bd754b79e67147f2303b657aca0d743 (patch) | |
tree | 2682ed7a7e43cf244c650c915fdff181f5de5bb9 | |
parent | c8e2b46eb9e13a9902f6c8ffbabb32bc1e473597 (diff) |
-rw-r--r-- | bin2c.c | 2 | ||||
-rw-r--r-- | c2bin.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -123,7 +123,7 @@ int main(int argc,char **argv){ if(strcmp(argv[2],"-")==0){ fout=stdout; } else { - fout=fopen(argv[2],"rb"); + fout=fopen(argv[2],"wb"); if(!fout){ fprintf(stderr,"Could not open file '%s'\n",argv[2]); return 1; @@ -146,7 +146,7 @@ int main(int argc,char **argv){ if(strcmp(argv[2],"-")==0){ fout=stdout; } else { - fout=fopen(argv[2],"rb"); + fout=fopen(argv[2],"wb"); if(!fout){ fprintf(stderr,"Could not open file '%s'\n",argv[2]); return 1; |