From b08d687d0a1342edac692d64b9e744c76cc3f641 Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 22 Feb 2009 09:48:27 +0000 Subject: merges r22121 from trunk into ruby_1_9_1. * io.c (rb_io_s_binread): ensures file path. [ruby-dev:37940] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@22519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 1 + 1 file changed, 1 insertion(+) (limited to 'io.c') diff --git a/io.c b/io.c index 50eaa5f261..5a91e04c6a 100644 --- a/io.c +++ b/io.c @@ -7292,6 +7292,7 @@ rb_io_s_binread(int argc, VALUE *argv, VALUE io) struct foreach_arg arg; rb_scan_args(argc, argv, "12", NULL, NULL, &offset); + FilePathValue(argv[0]); arg.io = rb_io_open(argv[0], rb_str_new_cstr("rb:ASCII-8BIT"), Qnil, Qnil); if (NIL_P(arg.io)) return Qnil; arg.argv = argv+1; -- cgit v1.2.3