summaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-12-01 09:24:48 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-12-01 09:24:48 +0000
commitfc41a9cb7df48d67eb6ee77fe8ce3f6bb3757ce4 (patch)
treebcccfeb74a7a975d713727a964e89fd53cc80e05 /string.c
parent122d4994c7ce43b08e66da1c7d1fdce549a3f3ba (diff)
downloadruby-fc41a9cb7df48d67eb6ee77fe8ce3f6bb3757ce4.tar.gz
ruby-fc41a9cb7df48d67eb6ee77fe8ce3f6bb3757ce4.tar.xz
ruby-fc41a9cb7df48d67eb6ee77fe8ce3f6bb3757ce4.zip
19991201
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index a9b8eedbe..7b8c558c1 100644
--- a/string.c
+++ b/string.c
@@ -2055,7 +2055,7 @@ rb_str_split_method(argc, argv, str)
if (!NIL_P(limit) && lim <= ++i) break;
}
end++;
- if (ismbchar(*ptr)) ptr++;
+ if (ismbchar(*ptr)) {ptr++; end++;}
}
}
}