From 3323315437ba6092fdab0d1fc46240c0d963fb43 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 10 Feb 2008 16:21:52 +0000 Subject: Fix thinko --- src/driver/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver/utils.c b/src/driver/utils.c index b5a1285f..c83937c8 100644 --- a/src/driver/utils.c +++ b/src/driver/utils.c @@ -217,7 +217,6 @@ openaxiom_execute_core(const openaxiom_command* command, concatenating the arguments into a single string. */ command_line = (char*) malloc(command_line_length + 1); strcpy(command_line, command->core_argv[0]); - command_line[cur++] = ' '; for (i = 0; i < command->rt_argc; ++i) { const int arg_length = strlen(command->rt_argv[i]); command_line[cur++] = ' '; @@ -229,6 +228,7 @@ openaxiom_execute_core(const openaxiom_command* command, strcpy(command_line + cur, command->rt_argv[i]); cur += arg_length; } + command_line[cur++] = ' '; command_line[cur++] = '-'; /* start arguments to the core executable. */ command_line[cur++] = '-'; for (i = 1; i < command->core_argc; ++i) { @@ -237,7 +237,7 @@ openaxiom_execute_core(const openaxiom_command* command, strcpy(command_line + cur, command->core_argv[i]); cur += arg_length; } - + if(CreateProcess(/* lpApplicationName */ execpath, /* lpCommandLine */ command_line, /* lpProcessAttributes */ NULL, -- cgit v1.2.3