diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-04 05:03:43 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-05-04 05:03:43 -0700 |
| commit | 428e45b689a6e306f433fc580718f8a4bfd2ec5d (patch) | |
| tree | f6ae144cff7b94cf52f3fc3a49317316281d07e9 | |
| parent | 5a6193ffddf6c0d8b3d564a04133d66baf54e511 (diff) | |
| parent | 1c2f37434b2f195e8b5b8b977758bc53919b96f5 (diff) | |
| download | mruby-428e45b689a6e306f433fc580718f8a4bfd2ec5d.tar.gz mruby-428e45b689a6e306f433fc580718f8a4bfd2ec5d.zip | |
Merge pull request #95 from k-tsj/fix-localjumperror-message
LocalJumpError message contained garbage characters
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
