diff --git a/io.c b/io.c index 3bc4455f9d..47b86ed240 100644 --- a/io.c +++ b/io.c @@ -1428,7 +1428,7 @@ io_write_m(VALUE io, VALUE str) VALUE rb_io_write(VALUE io, VALUE str) { - return rb_funcall(io, id_write, 1, str); + return rb_funcallv(io, id_write, 1, &str); } /*