summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/*