diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/testProcess.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/kwsys/testProcess.c b/Source/kwsys/testProcess.c index ae3410a..c569528 100644 --- a/Source/kwsys/testProcess.c +++ b/Source/kwsys/testProcess.c @@ -166,7 +166,11 @@ int main(int argc, const char* argv[]) int exceptions[4] = {kwsysProcess_Exception_None, kwsysProcess_Exception_None, kwsysProcess_Exception_None, kwsysProcess_Exception_Fault}; int values[4] = {0, 123, 1, 1}; - const char* cmd[] = {argv[0], "run", argv[1], 0}; + const char* cmd[4]; + cmd[0] = argv[0]; + cmd[1] = "run"; + cmd[2] = argv[1]; + cmd[3] = 0; return runChild(cmd, states[n-1], exceptions[n-1], values[n-1]); } else |