|
From: Lasse Kärkkäi. <tr...@us...> - 2009-07-10 21:16:14
|
Module: performous
Branch: master
Commit: 5dd5b48e064d58b5429afc4340baba442ae03f8e
Author: Lasse Karkkainen <tro...@tr...>
Date: Sat Jul 11 00:15:14 2009 +0300
Print the command before executing it.
Fix bug in calling execl: the argument list must be (void*)NULL-terminated (simple 0 won't do because its a vararg function).
---
silkystrings/src/LauncherWindow.cpp | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/silkystrings/src/LauncherWindow.cpp b/silkystrings/src/LauncherWindow.cpp
index fb8c148..c5769fe 100644
--- a/silkystrings/src/LauncherWindow.cpp
+++ b/silkystrings/src/LauncherWindow.cpp
@@ -217,6 +217,9 @@ void Launcher::LauncherWindow::play(){
param[9] << height;
param[10] << (fullscreen->checkState() == Qt::Unchecked ? false : true);
+ std::cout << "silkystrings";
+ for (int n = 0; n < 11; ++n) std::cout << " " << param[n].str();
+ std::cout << std::endl;
// execute silkystring and exit launcher
execl("silkystrings",
@@ -232,7 +235,7 @@ void Launcher::LauncherWindow::play(){
param[8].str().c_str(),
param[9].str().c_str(),
param[10].str().c_str(),
- 0);
+ (void*)NULL);
// if execution fails
|