use mrb_str_cat_lit() instead of mrb_str_cat_cstr().

This commit is contained in:
Tatsuhiko Kubo
2014-08-21 14:11:14 +09:00
parent 4d72d65db1
commit 45103ebc20
+1 -1
View File
@@ -291,7 +291,7 @@ mrb_str_succ_bang(mrb_state *mrb, mrb_value self)
while (e >= b) {
if (!ISALNUM(*e)) {
if (*e == 0xff) {
mrb_str_cat_cstr(mrb, result, "\x01");
mrb_str_cat_lit(mrb, result, "\x01");
(*e) = 0;
} else
(*e)++;