summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-string-ext/src/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-string-ext/src/string.c')
-rw-r--r--mrbgems/mruby-string-ext/src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-string-ext/src/string.c b/mrbgems/mruby-string-ext/src/string.c
index 085de76ef..9db3589c7 100644
--- a/mrbgems/mruby-string-ext/src/string.c
+++ b/mrbgems/mruby-string-ext/src/string.c
@@ -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)++;