mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-28 08:17:18 +00:00
[client/host] common: fix trim value bug reading the wrong variable
This commit is contained in:
parent
e6aa2b85a9
commit
b2ec60d2dc
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user