mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
use mrb_str_cat_lit() instead of mrb_str_cat_cstr().
This commit is contained in:
@@ -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)++;
|
||||
|
||||
Reference in New Issue
Block a user