summaryrefslogtreecommitdiff
path: root/marshal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-15 01:06:51 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-15 01:06:51 +0000
commitd420686fdc62e7b61f57b3299a831b0036f85e0c (patch)
tree8ac1914699463ede7b3479cb7c352f6cf3e1500e /marshal.c
parent14264f5f622f7a2b7688edfdcfad0aa6d8db155d (diff)
downloadruby-d420686fdc62e7b61f57b3299a831b0036f85e0c.tar.gz
* marshal.c (r_bytes0): commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r--marshal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/marshal.c b/marshal.c
index fc6bff31c9..f442053c5a 100644
--- a/marshal.c
+++ b/marshal.c
@@ -929,7 +929,7 @@ r_bytes0(long len, struct load_arg *arg)
if (len == 0) return rb_str_new(0, 0);
if (TYPE(arg->src) == T_STRING) {
- if (RSTRING_LEN(arg->src) > arg->offset + len) {
+ if (RSTRING_LEN(arg->src) >= arg->offset + len) {
str = rb_str_new(RSTRING_PTR(arg->src)+arg->offset, len);
arg->offset += len;
}