Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
nanosonde committed May 14, 2018
1 parent aadfa2c commit afff1cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zend_accelerator_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,9 @@ static ZEND_FUNCTION(bcgen_compile_file)
RETURN_FALSE;
}

ZCG(outfilename) = emalloc(outscript_name_len);
ZCG(outfilename) = emalloc(outscript_name_len + 1);
memcpy(ZCG(outfilename), outscript_name, outscript_name_len);
ZCG(outfilename)[outscript_name_len + 1] = "\0";

handle.filename = script_name;
handle.free_filename = 0;
Expand Down

0 comments on commit afff1cf

Please sign in to comment.