mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #95 from k-tsj/fix-localjumperror-message
LocalJumpError message contained garbage characters
This commit is contained in:
@@ -268,7 +268,7 @@ localjump_error(mrb_state *mrb, const char *kind)
|
||||
mrb_value exc;
|
||||
|
||||
snprintf(buf, 256, "unexpected %s", kind);
|
||||
exc = mrb_exc_new(mrb, E_LOCALJUMP_ERROR, buf, sizeof(buf));
|
||||
exc = mrb_exc_new(mrb, E_LOCALJUMP_ERROR, buf, strlen(buf));
|
||||
mrb->exc = mrb_object(exc);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user