summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-07-12 13:32:48 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-07-12 14:56:05 +1000
commitc238cc31c901dc5f7247a9c3d7ffc9d0b30842cc (patch)
treea57bac80fac79d1a3c2ecae6e4f8c4a53a0d2cae
parent5e00804d3c3ac21c75cd1b3d9b9da85b8b79cdf9 (diff)
process: fix missing argv[0] in the new vector startup
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/process.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/process.cpp b/src/process.cpp
index 7b60afc..aadb82c 100644
--- a/src/process.cpp
+++ b/src/process.cpp
@@ -64,6 +64,8 @@ void xorg::testing::Process::Start(const std::string &program, const std::vector
std::vector<char*> args;
std::vector<std::string>::const_iterator it;
+ args.push_back(strdup(program.c_str()));
+
for (it = argv.begin(); it != argv.end(); it++)
if (!it->empty())
args.push_back(strdup(it->c_str()));