frontend: assemble: assembler requires output file to be open read/write

This commit is contained in:
2025-05-14 16:29:09 +01:00
parent 3980c9a21f
commit 8998ef0232

View File

@@ -29,7 +29,7 @@ static int assemble_file(const char *in_path, const char *out_path)
return -1;
}
FILE *out = fopen(out_path, "wb");
FILE *out = fopen(out_path, "w+b");
if (!out) {
b_err("cannot open output file '%s'", out_path);
b_i("reason: %s", strerror(errno));