child_process: copy spawnSync() cwd option to proper buffer
authorcjihrig <cjihrig@gmail.com>
Wed, 25 Jun 2014 03:18:00 +0000 (23:18 -0400)
committerFedor Indutny <fedor@indutny.com>
Sat, 12 Jul 2014 09:46:16 +0000 (12:46 +0300)
commitc4e5fde3629f386ab73453b9d5e85f071da1fc55
treebfa3979cf8ab9a356b4c8ff634dcdf625f325056
parent9452ea2ef5bbaf4c0b03764c53899d97d0f210f3
child_process: copy spawnSync() cwd option to proper buffer

The spawnSync() cwd option was being copied to the incorrect
location. This commit copies to the correct location.

Closes #7824

Signed-off-by: Fedor Indutny <fedor@indutny.com>
src/spawn_sync.cc
test/simple/test-child-process-execsync.js
test/simple/test-child-process-spawnsync.js