diff options
| author | mimaki <[email protected]> | 2018-04-04 13:20:40 +0900 |
|---|---|---|
| committer | mimaki <[email protected]> | 2018-04-04 13:20:40 +0900 |
| commit | c1b9ec0c30b016bbc2919b96a1b6da00dab9257d (patch) | |
| tree | 74023936a84a4366cdf1dfd7f16b0bf61b1fa122 /mrbgems/mruby-bin-debugger | |
| parent | 951ebbafdce2828a4ac539fe2e2342fbb378e999 (diff) | |
| download | mruby-c1b9ec0c30b016bbc2919b96a1b6da00dab9257d.tar.gz mruby-c1b9ec0c30b016bbc2919b96a1b6da00dab9257d.zip | |
Fixed illegal memory operation on mruby debugger.
Diffstat (limited to 'mrbgems/mruby-bin-debugger')
| -rw-r--r-- | mrbgems/mruby-bin-debugger/tools/mrdb/apiprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |
