From b2ec60d2dcce667c561e0adbc2667e962cade451 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 13 Sep 2023 21:30:11 +1000 Subject: [PATCH] [client/host] common: fix trim value bug reading the wrong variable --- common/src/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/option.c b/common/src/option.c index 614b25df..8e980243 100644 --- a/common/src/option.c +++ b/common/src/option.c @@ -487,7 +487,7 @@ static bool process_option_line(const char * module, const char * name, if (value) { //rtrim - while (valueLen > 1 && isspace(name[valueLen-1])) + while (valueLen > 1 && isspace(value[valueLen-1])) --valueLen; value[valueLen] = '\0';