about summary refs log tree commit homepage
path: root/ext/kgio/writev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/kgio/writev.c')
-rw-r--r--ext/kgio/writev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/kgio/writev.c b/ext/kgio/writev.c
index 9a8030a..9c1ca15 100644
--- a/ext/kgio/writev.c
+++ b/ext/kgio/writev.c
@@ -194,7 +194,7 @@ static long trim_writev_buffer(struct wrv_args *a, ssize_t n)
         if (n < 0) {
                 VALUE str = rb_ary_entry(a->buf, 0);
                 long str_len = RSTRING_LEN(str);
-                str = rb_str_subseq(str, str_len + n, -n);
+                str = MY_STR_SUBSEQ(str, str_len + n, -n);
                 rb_ary_store(a->buf, 0, str);
         }
         return RARRAY_LEN(a->buf);