summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-20 09:20:30 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-20 09:20:30 +0000
commit3d699ae9ffc32665e8f9117c4149e2ae03123bdf (patch)
tree3c1a24bf6edd888510370d62650def9760769ded /string.c
parente31a0443ceb78acbc46f9328da58d204f320dd22 (diff)
-a -> -a- ^^;;
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string.c b/string.c
index ca4ad9cf615..3a278b898f2 100644
--- a/string.c
+++ b/string.c
@@ -913,7 +913,7 @@ str_sub_s(str, pat, val, once)
}
if (once) break;
- if (offset >= STRLEN(str)) break;
+ if (offset > STRLEN(str)) break;
}
if (n == 0) return Qnil;
if (RSTRING(str)->len > offset) {
@@ -996,7 +996,7 @@ str_sub_iter_s(str, pat, once)
}
if (once) break;
- if (offset >= STRLEN(str)) break;
+ if (offset > STRLEN(str)) break;
}
if (n == 0) return Qnil;
if (RSTRING(str)->len > offset) {