diff options
author | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-03 21:05:34 +0200 |
---|---|---|
committer | Anton L. Šijanec <anton@sijanec.eu> | 2020-05-03 21:05:34 +0200 |
commit | 51bfbed1d8f8e2a2c27bc37850865699b0e727f9 (patch) | |
tree | 371ee7f6df602b79c052bc34d155caf1a9868446 /src | |
parent | variables setting and getting now works from bvr scripts (diff) | |
download | bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar.gz bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar.bz2 bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar.lz bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar.xz bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.tar.zst bverbose-51bfbed1d8f8e2a2c27bc37850865699b0e727f9.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/bvrcommands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bvrcommands.c b/src/bvrcommands.c index 2e0761b..5930222 100644 --- a/src/bvrcommands.c +++ b/src/bvrcommands.c @@ -36,7 +36,7 @@ int bvr_handle_set(FILE * input, FILE * output) { 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 && + while(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; input_char = fgetc(input); |