mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[common] option: fixed missing null terminator
This commit is contained in:
parent
9554e82c47
commit
438e9e0969
@ -427,6 +427,9 @@ bool option_load(const char * filename)
|
||||
DEBUG_WARN("Ignored unknown option %s:%s", module, name);
|
||||
else
|
||||
{
|
||||
if (value)
|
||||
value[valueLen] = '\0';
|
||||
|
||||
if (!option_set(o, value))
|
||||
DEBUG_ERROR("Failed to set the option value");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user