diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-11 00:45:32 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-12-11 00:45:32 +0000 |
| commit | 423d5bb55ab96d2dcac6d5f910fd0c96b524b8e2 (patch) | |
| tree | b1517dba6fecdba9775038fd4678073b60043895 /string.c | |
| parent | 3dadc8848c417c25a2408efe3bb7e5c2879feac1 (diff) | |
| download | ruby-423d5bb55ab96d2dcac6d5f910fd0c96b524b8e2.tar.gz ruby-423d5bb55ab96d2dcac6d5f910fd0c96b524b8e2.tar.xz ruby-423d5bb55ab96d2dcac6d5f910fd0c96b524b8e2.zip | |
* string.c (rb_str_aset): index double decode problem.
[ruby-core:09695]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@11374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
| -rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1725,8 +1725,8 @@ rb_str_aset(str, indx, val) switch (TYPE(indx)) { case T_FIXNUM: - num_index: idx = FIX2LONG(indx); + num_index: if (RSTRING(str)->len <= idx) { out_of_range: rb_raise(rb_eIndexError, "index %ld out of string", idx); |
