Skip to content
Permalink
Browse files

[common] option: fixed missing null terminator

  • Loading branch information...
gnif committed May 26, 2019
1 parent 9554e82 commit 438e9e0969a09a1a4143b7f16a39445902253924
Showing with 4 additions and 1 deletion.
  1. +1 −1 VERSION
  2. +3 −0 common/src/option.c
@@ -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);
else
{
if (value)
value[valueLen] = '\0';

if (!option_set(o, value))
DEBUG_ERROR("Failed to set the option value");
}

0 comments on commit 438e9e0

Please sign in to comment.
You can’t perform that action at this time.