mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-09 13:53:58 +00:00
[common] option: fixed missing null terminator
This commit is contained in:
parent
9554e82c47
commit
438e9e0969
2 changed files with 4 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
B1-rc2-5-g4cf2c7a350+1
|
B1-rc2-6-g9554e82c47+1
|
|
@ -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 a new issue