diff options
Diffstat (limited to 'src/bvrcommands.c')
-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); |