mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +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);
|
DEBUG_WARN("Ignored unknown option %s:%s", module, name);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (value)
|
||||||
|
value[valueLen] = '\0';
|
||||||
|
|
||||||
if (!option_set(o, value))
|
if (!option_set(o, value))
|
||||||
DEBUG_ERROR("Failed to set the option value");
|
DEBUG_ERROR("Failed to set the option value");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user