From 2a38a7e6589608494feae185a12b6aa6eee72dd3 Mon Sep 17 00:00:00 2001 From: Sergey Chadov Date: Sun, 31 Aug 2014 14:34:15 +0400 Subject: [PATCH 1/2] win32 fix --- src/shell.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/shell.cpp b/src/shell.cpp index e12fe31..5707126 100644 --- a/src/shell.cpp +++ b/src/shell.cpp @@ -1,5 +1,6 @@ #include #include +#include #ifdef _WIN32 @@ -31,9 +32,12 @@ int exec(const char* command) { si.cb = sizeof(si); ZeroMemory(&pi, sizeof(pi)); + int command_len = strlen(command); + std::vector command_copy(&command[0], &command[command_len]); + // Start the child process. if(!CreateProcess(NULL, // No module name (use command line) - (LPSTR) command,// Command line + (LPSTR) &command_copy[0],// Command line NULL, // Process handle not inheritable NULL, // Thread handle not inheritable FALSE, // Set handle inheritance to FALSE From af4c4b346933fcdbe250e0c790a46a6ec9675413 Mon Sep 17 00:00:00 2001 From: Philipp Classen Date: Tue, 13 Jan 2015 17:20:53 +0100 Subject: [PATCH 2/2] Updated dependences (expect mocha: 2.1 breaks the tests) --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 55d9b79..73a42c8 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,10 @@ "version": "1.0.2", "license": "MIT", "dependencies": { - "temp": "~0.5.1" + "temp": "~0.8.1" }, "devDependencies": { - "chai": "~1.5.0", + "chai": "~1.10.0", "mocha": "~1.9.0" }, "optionalDependencies": {},