elm_config: remove explict null terminator for snprintf 90/225890/2
authorYeongjong Lee <yj34.lee@samsung.com>
Tue, 25 Feb 2020 07:25:41 +0000 (16:25 +0900)
committerHermet Park <chuneon.park@samsung.com>
Wed, 26 Feb 2020 09:16:57 +0000 (09:16 +0000)
commit9fd026c5ed1499f8ccdfb4495e38f9a78dd09978
tree28b35959cb479e21d28b02c1e6b026912b069c39
parent3b35765f6c9f732325d6060306f5d3da99eb3fdb
elm_config: remove explict null terminator for snprintf

snprintf will add a null terminator at the end of string.
Also, this fixes `Wformat-contains-nul` compiler warnings.
```
../src/lib/elementary/elm_config.c: In function '_product_color_overlay_get':
../src/lib/elementary/elm_config.c:1383:87: warning: embedded '\0' in format [-Wformat-contains-nul]
 1383 |         snprintf(config_path, sizeof(config_path), "%s/config/%s/%s_color_overlays.cfg\0",
      |                                                                                       ^~
../src/lib/elementary/elm_config.c: In function '_elm_config_product_font_overlay_get':
../src/lib/elementary/elm_config.c:1538:86: warning: embedded '\0' in format [-Wformat-contains-nul]
 1538 |         snprintf(config_path, sizeof(config_path), "%s/config/%s/%s_font_overlays.cfg\0",
      |
```

@tizen_fix

Change-Id: Id2c73c9186b820e9398bd3d8a5cc27432edee09a
src/lib/elementary/elm_config.c