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 35c406a2a3..4e9c84f3ed 100644
--- a/io.c
+++ b/io.c
@@ -5311,7 +5311,7 @@ argf_read(int argc, VALUE *argv)
VALUE tmp, str, length;
long len = 0;
- rb_scan_args(argc, argv, "11", &length, &str);
+ rb_scan_args(argc, argv, "02", &length, &str);
if (!NIL_P(length)) {
len = NUM2LONG(argv[0]);
}