summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authortakahashim <[email protected]>2015-09-27 13:43:43 +0900
committertakahashim <[email protected]>2015-09-27 13:43:45 +0900
commit074c6e2678bf21a453f0f02ffe49e0239b46377f (patch)
tree1b76f7695f3d4ceab9c04227b2fb30ba01f23357 /src
parent0aa83c503d15d5683f2135d172a02f155498c598 (diff)
downloadmruby-074c6e2678bf21a453f0f02ffe49e0239b46377f.tar.gz
mruby-074c6e2678bf21a453f0f02ffe49e0239b46377f.zip
fix String#inspect with MRB_UTF8_STRING
cf. #2963
Diffstat (limited to 'src')
-rw-r--r--src/string.c2
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