summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBastian Wissler2008-12-01 20:37:39 +0100
committerBastian Wissler2008-12-01 20:37:39 +0100
commitfa70eca16da58e50904b86c5a8a85f30c5d50bbe (patch)
tree98f04661a4f7dd0a668a4340204773570af7c466
parentvmchooser: (diff)
downloadvmchooser-fa70eca16da58e50904b86c5a8a85f30c5d50bbe.tar.gz
vmchooser-fa70eca16da58e50904b86c5a8a85f30c5d50bbe.tar.xz
vmchooser-fa70eca16da58e50904b86c5a8a85f30c5d50bbe.zip
vmchooser plugin: * Fixed Bug with argument of mesgdisp.
git-svn-id: http://svn.openslx.org/svn/openslx/openslx-src-tools/vmchooser/trunk@2393 95ad53e4-c205-0410-b2fa-d234c58c8868
-rw-r--r--vmchooser/runImage.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/vmchooser/runImage.cxx b/vmchooser/runImage.cxx
index 789098c..6ffa51f 100644
--- a/vmchooser/runImage.cxx
+++ b/vmchooser/runImage.cxx
@@ -41,10 +41,15 @@ void runImage(fltk::Widget*, void* p)
pid_t pid;
// in case you want to wait hours on your thread
//int status;
+ char arg1[MAX_LENGTH];
+ strncpy(arg1, (char*) string("'\n\nStarte Image: ")
+ .append(dat.short_description)
+ .append("\n'").c_str(),MAX_LENGTH);
+ char* argv[] = { "/opt/openslx/plugin-repo/vmchooser/mesgdisp",
+ arg1, NULL };
+
+ printf("%s", arg1);
pid = fork();
- char* argv[] = { "mesgdisp", ///opt/openslx/plugin-repo/vmchooser/
- (char*) string("\n\nStarte Image: ").append(dat.short_description)
- .append("\n").c_str(), NULL };
switch( pid ) {
case -1: