summaryrefslogtreecommitdiffhomepage
path: root/src/vm.c
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-04-21 21:24:00 +0200
committercremno <[email protected]>2014-04-21 21:28:06 +0200
commitbc23a5e9e555f7a0b606856c417b9910ed92af68 (patch)
treee6e5d9a9f13f8a427090a11b3da251a3644cb14a /src/vm.c
parentdb6e8682654ec71d7aca7b3d03119e9440a7f5b1 (diff)
downloadmruby-bc23a5e9e555f7a0b606856c417b9910ed92af68.tar.gz
mruby-bc23a5e9e555f7a0b606856c417b9910ed92af68.zip
remove `mrb_str_buf_cat`
It does the same as `mrb_str_cat`.
Diffstat (limited to 'src/vm.c')
-rw-r--r--src/vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm.c b/src/vm.c
index 320282742..da8c62f51 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -564,8 +564,8 @@ localjump_error(mrb_state *mrb, localjump_error_kind kind)
mrb_value exc;
msg = mrb_str_buf_new(mrb, sizeof(lead) + 7);
- mrb_str_buf_cat(mrb, msg, lead, sizeof(lead) - 1);
- mrb_str_buf_cat(mrb, msg, kind_str[kind], kind_str_len[kind]);
+ mrb_str_cat(mrb, msg, lead, sizeof(lead) - 1);
+ mrb_str_cat(mrb, msg, kind_str[kind], kind_str_len[kind]);
exc = mrb_exc_new_str(mrb, E_LOCALJUMP_ERROR, msg);
mrb->exc = mrb_obj_ptr(exc);
}