Commit 428e45b6 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #95 from k-tsj/fix-localjumperror-message

LocalJumpError message contained garbage characters
parents 5a6193ff 1c2f3743
......@@ -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