* process.c (ALLOC_ARGV_WITH_STR): fix void pointer arithmetic.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2011-01-27 03:46:44 +00:00
parent beec203a1d
commit fa57e46896
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Thu Jan 27 12:46:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (ALLOC_ARGV_WITH_STR): fix void pointer arithmetic.
Thu Jan 27 08:41:40 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* process.c (proc_exec_v, rb_proc_exec_n, rb_proc_exec)

View File

@ -1035,7 +1035,7 @@ exec_with_sh(const char *prog, char **argv)
#define ARGV_SIZE(n) (sizeof(char*) * ARGV_COUNT(n))
#define ALLOC_ARGV(n, v) ALLOCV_N(char*, (v), ARGV_COUNT(n))
#define ALLOC_ARGV_WITH_STR(n, v, s, l) \
(char **)(((s) = ALLOCV((v), ARGV_SIZE(n) + (l)) + ARGV_SIZE(n)) - ARGV_SIZE(n))
(char **)(((s) = ALLOCV_N(char, (v), ARGV_SIZE(n) + (l)) + ARGV_SIZE(n)) - ARGV_SIZE(n))
static int
proc_exec_v(char **argv, const char *prog)