summaryrefslogtreecommitdiff
path: root/bin2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin2c.c')
-rw-r--r--bin2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin2c.c b/bin2c.c
index 48ebae7..9cd9f0e 100644
--- a/bin2c.c
+++ b/bin2c.c
@@ -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;