summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-13 02:50:34 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-13 02:50:34 +0000
commitbbbea4394fb6ff5bc14187ca77f23f36cdddcf72 (patch)
treea2ceacda9f8d1caab93a7377f1062c27a20950e7 /io.c
parentac508f79a957fb6ddc1b9f650a9ea4a11d489f79 (diff)
downloadruby-bbbea4394fb6ff5bc14187ca77f23f36cdddcf72.tar.gz
ruby-bbbea4394fb6ff5bc14187ca77f23f36cdddcf72.tar.xz
ruby-bbbea4394fb6ff5bc14187ca77f23f36cdddcf72.zip
IO#seek segv
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 a35f306b2..61120908b 100644
--- a/io.c
+++ b/io.c
@@ -3317,7 +3317,7 @@ Init_IO()
rb_define_method(rb_cIO, "<<", rb_io_addstr, 1);
rb_define_method(rb_cIO, "flush", rb_io_flush, 0);
rb_define_method(rb_cIO, "tell", rb_io_tell, 0);
- rb_define_method(rb_cIO, "seek", rb_io_seek, 2);
+ rb_define_method(rb_cIO, "seek", rb_io_seek, -1);
rb_define_const(rb_cIO, "SEEK_SET", INT2FIX(SEEK_SET));
rb_define_const(rb_cIO, "SEEK_CUR", INT2FIX(SEEK_CUR));
rb_define_const(rb_cIO, "SEEK_END", INT2FIX(SEEK_END));