summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-string-ext/src
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-08-22 00:31:00 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-08-22 00:31:00 +0900
commit5aa6f8ba969cdff282252ca8aedb7d5261e5b5cd (patch)
tree8b38e8f2465a37bcbbc34437ac2186d7fa06c8ee /mrbgems/mruby-string-ext/src
parent015087c57f3ec7cc5d746ee66de5636a3b5d74c3 (diff)
parent45103ebc201c11095e11f142d91fc5b1749aed65 (diff)
downloadmruby-5aa6f8ba969cdff282252ca8aedb7d5261e5b5cd.tar.gz
mruby-5aa6f8ba969cdff282252ca8aedb7d5261e5b5cd.zip
Merge pull request #2551 from cubicdaiya/issues/use_mrb_str_cat_lit
use mrb_str_cat_lit() instead of mrb_str_cat_cstr().
Diffstat (limited to 'mrbgems/mruby-string-ext/src')
-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)++;