Skip to content

Commit

Permalink
* win32/win32.c (rb_w32_aspawn): get rid of too huge alloca().
Browse files Browse the repository at this point in the history
	  [Bug ruby#4330] [ruby-core:34898]



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
kosaki committed Jan 27, 2011
1 parent f7fb66b commit 2529d2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Jan 27 21:31:57 2011 KOSAKI Motohiro <[email protected]>

* win32/win32.c (rb_w32_aspawn): get rid of too huge alloca().
[Bug #4330] [ruby-core:34898]

Thu Jan 27 20:30:18 2011 KOSAKI Motohiro <[email protected]>

* win32/win32.c (rb_w32_spawn): get rid of too huge alloca().
Expand Down
2 changes: 1 addition & 1 deletion win32/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,7 @@ rb_w32_aspawn(int mode, const char *prog, char *const *argv)
if (len < sizeof(fbuf))
strlcpy(cmd = fbuf, prog, sizeof(fbuf));
else
STRNDUPA(cmd, prog, len);
STRNDUPV(cmd, v, prog, len);
translate_char(cmd, '/', '\\');
prog = cmd;
}
Expand Down

0 comments on commit 2529d2c

Please sign in to comment.