diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-15 01:06:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-15 01:06:51 +0000 |
commit | d420686fdc62e7b61f57b3299a831b0036f85e0c (patch) | |
tree | 8ac1914699463ede7b3479cb7c352f6cf3e1500e /marshal.c | |
parent | 14264f5f622f7a2b7688edfdcfad0aa6d8db155d (diff) | |
download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |