aboutsummaryrefslogtreecommitdiffstats
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 14443da712..1df7057d30 100644
--- a/io.c
+++ b/io.c
@@ -4001,7 +4001,7 @@ static VALUE
argf_forward()
{
return rb_funcall3(current_file, ruby_frame->last_func,
- ruby_frame->argc, ruby_frame->argv);
+ ruby_frame->argc, ruby_scope->local_vars + 2);
}
#define ARGF_FORWARD() do { if (TYPE(current_file) != T_FILE) return argf_forward(); } while (0)