diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-07 04:06:41 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-07 04:06:41 +0000 |
commit | 2b21e76548d8d1975383365c246bdbaa564f5fe8 (patch) | |
tree | e0a320235de1de0a41c1a6cec96ec3cfa52fbc4b /pack.c | |
parent | d0f558381d5723728fd749adb3168562cd8ea7c8 (diff) | |
download | ruby-2b21e76548d8d1975383365c246bdbaa564f5fe8.tar.gz ruby-2b21e76548d8d1975383365c246bdbaa564f5fe8.tar.xz ruby-2b21e76548d8d1975383365c246bdbaa564f5fe8.zip |
* pack.c (pack_unpack): string conversion should at the top of the
method. [ruby-dev:24439]
* io.c (io_read): buffer should be frozen only after the length
check. [ruby-dev:24440]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r-- | pack.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1311,9 +1311,9 @@ pack_unpack(str, fmt) #endif StringValue(str); + StringValue(fmt); s = RSTRING(str)->ptr; send = s + RSTRING(str)->len; - StringValue(fmt); p = RSTRING(fmt)->ptr; pend = p + RSTRING(fmt)->len; |