We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38e3a7c commit 0a3ea51Copy full SHA for 0a3ea51
1 file changed
src/main/klangc.c
@@ -90,7 +90,7 @@ static int klc_parse_argv(int argc, char** argv, KlCBehaviour* behaviour) {
90
}
91
if (behaviour->dumpoutput)
92
ko_delete(behaviour->dumpoutput);
93
- behaviour->dumpoutput = kofile_create(argv[++i], "w");
+ behaviour->dumpoutput = kofile_create(argv[++i], "wb");
94
if (kl_unlikely(!behaviour->dumpoutput)) {
95
fprintf(stderr, "failed to open file: %s\n", argv[i]);
96
klc_cleanbehaviour(behaviour);
0 commit comments