Commit c1b9ec0c authored by mimaki's avatar mimaki

Fixed illegal memory operation on mruby debugger.

parent 951ebbaf
...@@ -21,7 +21,7 @@ mrdb_check_syntax(mrb_state *mrb, mrb_debug_context *dbg, const char *expr, size ...@@ -21,7 +21,7 @@ mrdb_check_syntax(mrb_state *mrb, mrb_debug_context *dbg, const char *expr, size
c = mrbc_context_new(mrb); c = mrbc_context_new(mrb);
c->no_exec = TRUE; c->no_exec = TRUE;
c->capture_errors = TRUE; c->capture_errors = TRUE;
c->filename = (char*)dbg->prvfile; mrbc_filename(mrb, c, (const char*)dbg->prvfile);
c->lineno = dbg->prvline; c->lineno = dbg->prvline;
/* Load program */ /* Load program */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment