logconfig: fix config entry duplication 44/143844/5
authorMichal Bloch <m.bloch@samsung.com>
Fri, 11 Aug 2017 12:42:13 +0000 (14:42 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Fri, 11 Aug 2017 12:52:55 +0000 (12:52 +0000)
commitd16ddf064e589e52c0a5fba8f3647871d0ee8162
tree14cc80558576b81599f382407ded63e87d4b5126
parent0c70f62c84912c430ca30765003e023694676858
logconfig: fix config entry duplication

snprintf returns the number of written chars WITHOUT the null terminator,
even though it accepts the size WITH it.

This meant that even though the overwrite was successful,
the modification check always failed, leading the config
to think there was no existing entry and add another one.

Change-Id: Ic7e10e24258e0d54dc08f2c280f1f298569a282d
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/shared/logconfig.c