aboutsummaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-01-06 16:14:39 +0000
committerdos-reis <gdr@axiomatics.org>2008-01-06 16:14:39 +0000
commit4f65e42b5746b7f327bcab26db5fab02e8f2c546 (patch)
treed4264d75aed915c9ef19b785340a9710cf9f6927 /src/driver
parent3545eca90d734224e7a468251ac686e1ca41d910 (diff)
downloadopen-axiom-4f65e42b5746b7f327bcab26db5fab02e8f2c546.tar.gz
* driver/main.c (main) [__WIN32__]: Fix off-by-one thinko.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/driver/main.c b/src/driver/main.c
index 12e8434a..313f9115 100644
--- a/src/driver/main.c
+++ b/src/driver/main.c
@@ -155,16 +155,16 @@ main(int argc, char* argv[])
command_line = (char*) malloc(command_line_length + 1);
strcpy(command_line, argv[0]);
- command_line[++cur] = ' ';
+ command_line[cur++] = ' ';
/* Now start arguments to the core executable. */
- command_line[++cur] = '-';
- command_line[++cur] = '-';
+ command_line[cur++] = '-';
+ command_line[cur++] = '-';
/* Concatenate the arguments into a single string. */
for (i = 1; i < argc; ++i) {
const int arg_length = strlen(argv[i]);
- command_line[++cur] = ' ';
+ command_line[cur++] = ' ';
/* Note that strcpy will terminate `command_line' with a NUL
character, and since the next iteration will write the
blank precisely where the NUL character is, the whole command