summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-04 14:43:45 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-04 14:43:45 +0000
commitdac421a9c987b74d82a074f19f3e3e038f99cc01 (patch)
tree471b97f04e17f7a7fb5bb2342f611c2be36c348e /ext/zlib
parent64b633f069e9d86bd4cc6f1786558fe900df9d1a (diff)
downloadruby-dac421a9c987b74d82a074f19f3e3e038f99cc01.tar.gz
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@19137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 636ec325ce..9bb8f33344 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);