read_write: call rb_str_modify() before rb_str_resize()
commit9c98bbd79f152fd72b257f9c37ca185587e56225
authorEric Wong <normalperson@yhbt.net>
Thu, 5 May 2011 20:24:36 +0000 (5 13:24 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 5 May 2011 20:29:15 +0000 (5 13:29 -0700)
tree4112448567043f78b832faeff484f903f013127d
parentc821ebeb851807840f74c4cb4f1a10e691bf222a
read_write: call rb_str_modify() before rb_str_resize()

This is needed under Ruby trunk if the string is not actually
resized.
ext/kgio/read_write.c
test/lib_read_write.rb