diff options
| author | takahashim <[email protected]> | 2015-09-27 13:43:43 +0900 |
|---|---|---|
| committer | takahashim <[email protected]> | 2015-09-27 13:43:45 +0900 |
| commit | 074c6e2678bf21a453f0f02ffe49e0239b46377f (patch) | |
| tree | 1b76f7695f3d4ceab9c04227b2fb30ba01f23357 | |
| parent | 0aa83c503d15d5683f2135d172a02f155498c598 (diff) | |
| download | mruby-074c6e2678bf21a453f0f02ffe49e0239b46377f.tar.gz mruby-074c6e2678bf21a453f0f02ffe49e0239b46377f.zip | |
fix String#inspect with MRB_UTF8_STRING
cf. #2963
| -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 |
