summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/bvrcommands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bvrcommands.c b/src/bvrcommands.c
index 54f6bda..bc5eed3 100644
--- a/src/bvrcommands.c
+++ b/src/bvrcommands.c
@@ -67,10 +67,10 @@ int bvr_handle_move(FILE * input, FILE * output) {
int i = 0;
while(input_char != ' ' && input_char != CLOSING_COMMAND_TAG_CHAR_1 && input_char != ',' && input_char != ';' && input_char != EOF &&
input_char != '\0' && input_char != '\n' && i < BVR_MAX_VARIABLE_SIZE) {
- item[++i] = input_char;
+ item[i++] = input_char;
input_char = fgetc(input);
}
- item[++i] = '\0';
+ item[i++] = '\0';
i = 0;
input_char = bvr_var_skip_separator_chars(input);
while(input_char != ' ' && input_char != CLOSING_COMMAND_TAG_CHAR_1 && input_char != ',' && input_char != ';' && input_char != EOF &&