diff options
-rw-r--r-- | ext/stringio/stringio.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1464,8 +1464,14 @@ strio_write(VALUE self, VALUE str) } } else { strio_extend(ptr, ptr->pos, len); memmove(RSTRING_PTR(ptr->string)+ptr->pos, RSTRING_PTR(str), len); } RB_GC_GUARD(str); ptr->pos += len; |