diff options
author | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-03 23:04:07 +0200 |
---|---|---|
committer | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-03 23:04:07 +0200 |
commit | fd102302a699622d83cccd2f18d62b1e3bf892c6 (patch) | |
tree | b69d56b07897a173a3a04c5d315c02f7520eb1a4 /src | |
parent | funtions with variables now include move (diff) | |
download | bverbose-fd102302a699622d83cccd2f18d62b1e3bf892c6.tar bverbose-fd102302a699622d83cccd2f18d62b1e3bf892c6.tar.gz bverbose-fd102302a699622d83cccd2f18d62b1e3bf892c6.tar.bz2 bverbose-fd102302a699622d83cccd2f18d62b1e3bf892c6.tar.lz bverbose-fd102302a699622d83cccd2f18d62b1e3bf892c6.tar.xz bverbose-fd102302a699622d83cccd2f18d62b1e3bf892c6.tar.zst bverbose-fd102302a699622d83cccd2f18d62b1e3bf892c6.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/bvrcommands.c | 4 |
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 && |