bus/dpaa: fix build with gcc 9.0
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 2 Nov 2018 19:06:05 +0000 (19:06 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 4 Nov 2018 21:27:10 +0000 (22:27 +0100)
commit74f277101265ff3376c65270da2dcbc6d1325494
treea53b2945ed7addbc5ecccd36abe58a2b6ac82692
parente5e193acf09c9d4b08e8ed7f2bf9a61b5c204fff
bus/dpaa: fix build with gcc 9.0

build error:
In function ‘fman_if_init’,
    .../drivers/bus/dpaa/base/fman/fman.c:186:2:
    error: ‘strncpy’ output may be truncated copying 4095 bytes from a
           string of length 4095 [-Werror=stringop-truncation]
    strncpy(__if->node_path, dpa_node->full_name, PATH_MAX - 1);

strncpy may result a not null-terminated string,
replaced it with strlcpy

Fixes: 5b22cf744689 ("bus/dpaa: introducing FMan configurations")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/bus/dpaa/base/fman/fman.c