string.c (rb_str_resize): typo fixed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ba9066bd84
commit
a20d60c819
2
string.c
2
string.c
@ -689,7 +689,7 @@ rb_str_resize(VALUE str, long len)
|
|||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
ptr = ALLOC_N(char,len+1);
|
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;
|
RSTRING(str)->as.heap.ptr = ptr;
|
||||||
STR_SET_NOEMBED(str);
|
STR_SET_NOEMBED(str);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user