From 8eada2f83661254768573e08ea1c5665b936899c Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 4 Sep 2008 14:43:45 +0000 Subject: * include/ruby/intern.h (rb_file_open_str): declared. * io.c (rb_file_open_str): defined. * ext/zlib/zlib.c (gzfile_s_open): use rb_file_open_str instead of rb_file_open. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/zlib/zlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/zlib') diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c index 636ec325c..9bb8f3334 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -2294,7 +2294,7 @@ gzfile_s_open(int argc, VALUE *argv, VALUE klass, const char *mode) } filename = argv[0]; FilePathValue(filename); - io = rb_file_open(RSTRING_PTR(filename), mode); + io = rb_file_open_str(filename, mode); argv[0] = io; return rb_gzfile_s_wrap(argc, argv, klass); -- cgit