summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-27 08:19:20 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-27 08:19:20 +0000
commitb66202465a6d6cd55900b4c4c7b3ddb1ffe923b9 (patch)
treee70ae21cb0c5abd9f23776100cae005279e65dc7 /string.c
parent2d8424a3cd04b9b7a106ec20b1bbc228b528a7f8 (diff)
* string.c (scan_once): wrong condition to use mbclen2().
[ruby-dev:27535] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9473 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 ccfda5c8f4..c428ea7d76 100644
--- a/string.c
+++ b/string.c
@@ -4189,7 +4189,7 @@ scan_once(str, pat, start)
/*
* Always consume at least one character of the input string
*/
- if (RSTRING(str)->len < END(0))
+ if (RSTRING(str)->len > END(0))
*start = END(0)+mbclen2(RSTRING(str)->ptr[END(0)],pat);
else
*start = END(0)+1;