diff options
author | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-03 23:02:59 +0200 |
---|---|---|
committer | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-03 23:02:59 +0200 |
commit | d0e08087f58c2445eaee12fc43cf4ee3d9fbc08e (patch) | |
tree | 8a1af870a748cbdb9f72d4b037b1e0736136782f /src | |
parent | now unquoted variables allow spaces, risky ... (diff) | |
download | bverbose-d0e08087f58c2445eaee12fc43cf4ee3d9fbc08e.tar bverbose-d0e08087f58c2445eaee12fc43cf4ee3d9fbc08e.tar.gz bverbose-d0e08087f58c2445eaee12fc43cf4ee3d9fbc08e.tar.bz2 bverbose-d0e08087f58c2445eaee12fc43cf4ee3d9fbc08e.tar.lz bverbose-d0e08087f58c2445eaee12fc43cf4ee3d9fbc08e.tar.xz bverbose-d0e08087f58c2445eaee12fc43cf4ee3d9fbc08e.tar.zst bverbose-d0e08087f58c2445eaee12fc43cf4ee3d9fbc08e.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/bvrcommands.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/bvrcommands.c b/src/bvrcommands.c index 5930222..54f6bda 100644 --- a/src/bvrcommands.c +++ b/src/bvrcommands.c @@ -73,13 +73,12 @@ int bvr_handle_move(FILE * input, FILE * output) { item[++i] = '\0'; i = 0; input_char = bvr_var_skip_separator_chars(input); - value[i] = input_char; 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) { - value[++i] = input_char; + value[i++] = input_char; input_char = fgetc(input); } - value[++i] = '\0'; + value[i++] = '\0'; return bvr_var_mv(item, value); fflush(output); return SUCCESS; |