aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/driver/utils.c4
1 files 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,