diff options
author | dos-reis <gdr@axiomatics.org> | 2008-02-10 16:01:01 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2008-02-10 16:01:01 +0000 |
commit | d4deb21a84d1f673b8833a9d95c5f076b8d37534 (patch) | |
tree | 924884952a6d1b34a80a6f31544e9a2068d642e2 /src | |
parent | 6b365f926f1f0430c34498392e1dddbff126bc48 (diff) | |
download | open-axiom-d4deb21a84d1f673b8833a9d95c5f076b8d37534.tar.gz |
Fix typo.
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/utils.c b/src/driver/utils.c index 04148015..b5a1285f 100644 --- a/src/driver/utils.c +++ b/src/driver/utils.c @@ -204,13 +204,13 @@ openaxiom_execute_core(const openaxiom_command* command, /* How long is the final command line for the MS system? */ command_line_length += cur; - for (i = 0; i < comand->rt_argc; ++i) + for (i = 0; i < command->rt_argc; ++i) command_line_length += 1 /* blank char as separator */ + strlen(command->rt_argv[i]); /* room for each argument */ /* Don't forget room for the doubledash string. */ command_line_length += sizeof("--") - 1; /* And arguments to the actual command. */ - for (i = 1; i < comand->core_argc; ++i) + for (i = 1; i < command->core_argc; ++i) command_line_length += 1 + strlen(command->core_argv[i]); /* Now, build the actual command line. This is done by @@ -248,7 +248,7 @@ openaxiom_execute_core(const openaxiom_command* command, /* lpCurrentDirectory */ NULL, /* lpstartupInfo */ &startupInfo, /* lpProcessInformation */ &procInfo) == 0) { - fprintf(stderr, GetLastError()); + fprintf(stderr, "error %d\n", GetLastError()); abort(); } WaitForSingleObject(procInfo.hProcess, INFINITE); |