diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-01 13:11:16 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-09-01 13:11:16 +0000 |
commit | a20d60c8196b10860eb4d919735fe6a82b1950b5 (patch) | |
tree | 3c5dc0db3a02e2f91cb2290440b4dbeb33215976 | |
parent | ba9066bd84f7dcb33fe91a1c2e90797d90d3b198 (diff) | |
download | ruby-a20d60c8196b10860eb4d919735fe6a82b1950b5.tar.gz |
string.c (rb_str_resize): typo fixed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -689,7 +689,7 @@ rb_str_resize(VALUE str, long len) return str; } ptr = ALLOC_N(char,len+1); - MEMCPY(ptr, RSTRING(str)->ary, char, RSTRING_LEN(str)); + MEMCPY(ptr, RSTRING_PTR(str), char, RSTRING_LEN(str)); RSTRING(str)->as.heap.ptr = ptr; STR_SET_NOEMBED(str); } |