aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-02-10 16:21:52 +0000
committerdos-reis <gdr@axiomatics.org>2008-02-10 16:21:52 +0000
commit3323315437ba6092fdab0d1fc46240c0d963fb43 (patch)
treeefca9ecfbf6af3eadd7789ec83908a45099beb6f /src
parentd4deb21a84d1f673b8833a9d95c5f076b8d37534 (diff)
downloadopen-axiom-3323315437ba6092fdab0d1fc46240c0d963fb43.tar.gz
Fix thinko
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,