From 51bfbed1d8f8e2a2c27bc37850865699b0e727f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20L=2E=20=C5=A0ijanec?= Date: Sun, 3 May 2020 21:05:34 +0200 Subject: now unquoted variables allow spaces, risky ... --- src/bvrcommands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bvrcommands.c') 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); -- cgit v1.2.3