Merge branch 'master' of ssh://gitweb/git/desktop/standalone-updater

This commit is contained in:
Robert Knight 2011-08-22 14:39:17 +01:00
commit 4d7ddc91d9

View file

@ -257,7 +257,7 @@ int ProcessUtils::runAsyncUnix(const std::string& executable,
if (child == 0)
{
// in child process
char** argBuffer = new char*[args.size() + 1];
char** argBuffer = new char*[args.size() + 2];
argBuffer[0] = strdup(executable.c_str());
int i = 1;
for (std::list<std::string>::const_iterator iter = args.begin(); iter != args.end(); iter++)