From d4deb21a84d1f673b8833a9d95c5f076b8d37534 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Sun, 10 Feb 2008 16:01:01 +0000 Subject: Fix typo. --- src/driver/utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/driver') 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); -- cgit v1.2.3