From 41819dc447067891a2154f1c99c0cb4589f7b73f Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 4 Jun 2012 10:19:32 +0000 Subject: * 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 --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') 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: -- cgit v1.2.3