Skip to content

Commit

Permalink
Make sure we get null-terminated filename.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn authored and gerdr committed Aug 18, 2013
1 parent f4f5611 commit 984b7c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nqp-cc/src/ops/mvmcc.ops
Expand Up @@ -52,7 +52,7 @@ inline op mvm_compile(invar PMC, in STR) :base_core {
{
unsigned int output_size;
char *output = MVM_mast_compile(interp, $1, &node_types, &output_size);
FILE *fh = fopen(Parrot_str_cstring(interp, $2), "wb+");
FILE *fh = fopen(Parrot_str_to_cstring(interp, $2), "wb+");
fwrite(output, 1, output_size, fh);
fclose(fh);
}
Expand Down

0 comments on commit 984b7c6

Please sign in to comment.