Commit 1c2f3743 authored by Kazuki Tsujimoto's avatar Kazuki Tsujimoto

LocalJumpError message contained garbage characters

parent 5a6193ff
......@@ -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);
}
......
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