tool: fix sizes in snprintfs 17/229517/1
authorAdrian Szyndela <adrian.s@samsung.com>
Wed, 1 Apr 2020 10:15:24 +0000 (12:15 +0200)
committerAdrian Szyndela <adrian.s@samsung.com>
Wed, 1 Apr 2020 11:54:07 +0000 (13:54 +0200)
commit2d7d604f2d3901d47c68044c3e81f5a9e868715e
tree5674264a3527000bf22e2994555e404c59ad57be
parent61dae9fbad255b5c6ade7c12696ac34155cf60b0
tool: fix sizes in snprintfs

Several snprintfs were cutting off last letters of strings.
This commit fixes them.

The size passed to snprintf includes space for nul-byte.

This could be fixed by adding '+ 1' to final snprintfs,
but all the uses of size after computed with first snprintfs
would add '+ 1', so it can be added along with computing.

Change-Id: Ie8e62d120709a3ca1433626f1f5b8eeadc2a2b4d
src/tool/preference_tool.c