diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-09-27 20:48:16 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-09-27 20:48:16 +0900 |
| commit | f70634b542139d131ff690204e6e45571d8ab497 (patch) | |
| tree | 1b76f7695f3d4ceab9c04227b2fb30ba01f23357 | |
| parent | 0aa83c503d15d5683f2135d172a02f155498c598 (diff) | |
| parent | 074c6e2678bf21a453f0f02ffe49e0239b46377f (diff) | |
| download | mruby-f70634b542139d131ff690204e6e45571d8ab497.tar.gz mruby-f70634b542139d131ff690204e6e45571d8ab497.zip | |
Merge pull request #2964 from takahashim/fix-utf8-inspect
fix String#inspect with MRB_UTF8_STRING
| -rw-r--r-- | src/string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c index 94afb4787..6cad6a4ac 100644 --- a/src/string.c +++ b/src/string.c @@ -2586,7 +2586,7 @@ mrb_str_inspect(mrb_state *mrb, mrb_value str) buf[i] = p[i]; } mrb_str_cat(mrb, result, buf, clen); - p += clen; + p += clen-1; continue; } #endif |
