diff options
Diffstat (limited to 'src/driver/main.c')
-rw-r--r-- | src/driver/main.c | 8 |
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 |