From c1b9ec0c30b016bbc2919b96a1b6da00dab9257d Mon Sep 17 00:00:00 2001 From: mimaki Date: Wed, 4 Apr 2018 13:20:40 +0900 Subject: Fixed illegal memory operation on mruby debugger. --- mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mrbgems/mruby-bin-debugger') diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c index a9c895b55..c8700530f 100644 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c @@ -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 */ -- cgit v1.2.3