summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-string-ext/src/string.c
diff options
context:
space:
mode:
authorTatsuhiko Kubo <[email protected]>2014-08-21 14:11:14 +0900
committerTatsuhiko Kubo <[email protected]>2014-08-21 16:51:08 +0900
commit45103ebc201c11095e11f142d91fc5b1749aed65 (patch)
tree87eeab64c281297bdcb880875e253516ccef8faa /mrbgems/mruby-string-ext/src/string.c
parent4d72d65db19bbc6b5a0c0a7500157f2955a7384c (diff)
downloadmruby-45103ebc201c11095e11f142d91fc5b1749aed65.tar.gz
mruby-45103ebc201c11095e11f142d91fc5b1749aed65.zip
use mrb_str_cat_lit() instead of mrb_str_cat_cstr().
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)++;