summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-08 07:33:59 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-08 07:33:59 +0000
commit9d0f830df51e9f1942c6b47c904a465273563abe (patch)
tree655b2c42b8e289ffd18f30a418c1ab586c72f01d
parent4944b54485044dcdd3c6307e58e14610c3df7741 (diff)
downloadruby-9d0f830df51e9f1942c6b47c904a465273563abe.tar.gz
ruby-9d0f830df51e9f1942c6b47c904a465273563abe.tar.xz
ruby-9d0f830df51e9f1942c6b47c904a465273563abe.zip
* ext/zlib/zlib.c (gzfile_s_open): use FilePathValue to support
to_path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/zlib/zlib.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f67902742..275908aeb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Fri Jun 8 16:34:20 2007 Tanaka Akira <akr@fsij.org>
+
+ * ext/zlib/zlib.c (gzfile_s_open): use FilePathValue to support
+ to_path.
+
Fri Jun 8 16:11:00 2007 Koichi Sasada <ko1@atdot.net>
* eval_jump.h: th->errinfo should clear with nil.
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 509935a14..4002b75a5 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;