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

This commit is contained in:
Geoffrey McRae 2023-09-13 21:30:11 +10:00
parent e6aa2b85a9
commit b2ec60d2dc

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';