Fixed illegal memory operation on mruby debugger.

This commit is contained in:
mimaki
2018-04-04 13:20:40 +09:00
parent 951ebbafdc
commit c1b9ec0c30
@@ -21,7 +21,7 @@ mrdb_check_syntax(mrb_state *mrb, mrb_debug_context *dbg, const char *expr, size
c = mrbc_context_new(mrb);
c->no_exec = TRUE;
c->capture_errors = TRUE;
c->filename = (char*)dbg->prvfile;
mrbc_filename(mrb, c, (const char*)dbg->prvfile);
c->lineno = dbg->prvline;
/* Load program */