Fix string getter implementation 15/307015/3
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 4 Mar 2024 02:14:04 +0000 (11:14 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 4 Mar 2024 02:24:43 +0000 (11:24 +0900)
commit6dc3992d8d5097d9c997f514e0d6a4cc83fc7d83
tree5bdc55617d2287b56cde02c4e4d4b790f0a521cc
parent2743f1077f8e0fdd6873519c8d1c3330c43a32ef
Fix string getter implementation

In the previous implementation, the file does not have the null-terminated string
if the data is string type. After refactored the implementation, the file has
the null-terminated string. The preference API checks whether the last character
is the null-terminated string or not. And, if it's not, the null-terminated string
will be added. This patch is for backward compatibility.

Change-Id: Ia0a50d008be7f66616410c80d98b963dc36e68ad
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
preference/file-internal.cc