summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
-rw-r--r--ext/stringio/stringio.c6
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;