From 317996699cf5ce975701fa3becdb03dc1aaf0fb7 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 26 Dec 2000 08:32:35 +0000 Subject: matz git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 5edac14e6..33afb982c 100644 --- a/string.c +++ b/string.c @@ -1494,8 +1494,8 @@ rb_str_inspect(str) char c = *p++; if (ismbchar(c) && p < pend) { int len = mbclen(c); - rb_str_cat(result, p, len); - p += len; + rb_str_cat(result, p - 1, len); + p += len - 1; } else if (c == '"'|| c == '\\') { s[0] = '\\'; s[1] = c; -- cgit