summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-04 10:19:32 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-04 10:19:32 +0000
commit41819dc447067891a2154f1c99c0cb4589f7b73f (patch)
tree5e3c46fd9377e473f4611332c1e4999fe59c55cd /io.c
parent06513cc1cf5bbe1e23f871f920df7e2b7b793d9d (diff)
* internal.h (ARGVSTR2ARGC): defined.
(ARGVSTR2ARGV): defined. * process.c (proc_exec_v): use ARGVSTR2ARGV. (rb_spawn_process): use ARGVSTR2ARGC and ARGVSTR2ARGV. * io.c (pipe_open): use ARGVSTR2ARGV. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 10d512a58b..bd9043bcdc 100644
--- a/io.c
+++ b/io.c
@@ -5584,7 +5584,7 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
}
#elif defined(_WIN32)
if (eargp && eargp->argv_str) {
- args = (char **)RSTRING_PTR(eargp->argv_str);
+ args = ARGVSTR2ARGV(eargp->argv_str);
}
switch (fmode & (FMODE_READABLE|FMODE_WRITABLE)) {
case FMODE_READABLE|FMODE_WRITABLE: