mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* win32/win32.c (rb_w32_aspawn): get rid of too huge alloca().
[Bug #4330] [ruby-core:34898] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f7fb66bd35
commit
2529d2c38d
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Jan 27 21:31:57 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* 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 <kosaki.motohiro@gmail.com>
|
||||
|
||||
* win32/win32.c (rb_w32_spawn): get rid of too huge alloca().
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue