[client/host] common: fix trim value bug reading the wrong variable

This commit is contained in:
Geoffrey McRae committed 2023-09-13 21:54:31 +10:00
1 parent e6aa2b85a9
commit b2ec60d2dc
1 file changed
+1 -1
+1 -1
View File
@@ -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';