[common] option: fixed missing null terminator
This commit is contained in:
1 parent
9554e82c47
commit
438e9e0969
2 files changed
+4
-1
No files matched your search
@@ -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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user