fix build warnings 22/225822/1
authorjeon <jhyuni.kang@samsung.com>
Tue, 25 Feb 2020 01:00:04 +0000 (10:00 +0900)
committerjeon <jhyuni.kang@samsung.com>
Tue, 25 Feb 2020 01:00:09 +0000 (10:00 +0900)
commitefd68fad3786e6cbc499f1054565df6afe1d4881
tree52584967034e1214a447dc5e5572887ad934e1b9
parent9a90a0157538b3fedb449f577cb0c6977fb3e70c
fix build warnings

  - warning: specified bound depends on the length of the
    source argument
  - using source argument's length in strncat, strncpy
    can cause string overflow
  - so instead of use source length, to use snprintf

Change-Id: Ica4ece26165670ac968725d8a69a3431e9d9aa5a
src/lib/pepper/utils-file.c
src/samples/sample-client.c