Skip to content

Commit

Permalink
io.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Canfield authored and Laurent Sansonetti committed Apr 21, 2011
1 parent 56236a3 commit b815ac1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions io.c
Expand Up @@ -2316,6 +2316,7 @@ io_from_spawning_new_process(VALUE prog, VALUE mode)
const long len = RARRAY_LEN(argArray);
char **spawnedArgs =
malloc((len + 1) * sizeof(char *));
assert(spawnedArgs != NULL);
for (long i = 0; i < len; i++) {
VALUE str = RARRAY_AT(argArray, i);
spawnedArgs[i] = StringValuePtr(str);
Expand Down

0 comments on commit b815ac1

Please sign in to comment.