From 3a868301ea9997fd3eca20eb62f2d5a8c74be3de Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 8 Jun 2007 07:33:59 +0000 Subject: * ext/zlib/zlib.c (gzfile_s_open): use FilePathValue to support to_path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12480 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 509935a147..4002b75a5c 100644 --- a/ext/zlib/zlib.c +++ b/ext/zlib/zlib.c @@ -2287,7 +2287,7 @@ gzfile_s_open(int argc, VALUE *argv, VALUE klass, const char *mode) rb_raise(rb_eArgError, "wrong number of arguments (0 for 1)"); } filename = argv[0]; - SafeStringValue(filename); + FilePathValue(filename); io = rb_file_open(RSTRING_PTR(filename), mode); argv[0] = io; -- cgit v1.2.3