From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [dpdk-stable] [PATCH v2 2/2] eal: fix build with gcc 9.0 Date: Sun, 04 Nov 2018 22:38:58 +0100 Message-ID: <10879605.LDG2RKmYlG@xps> References: <20181101131951.91459-1-ferruh.yigit@intel.com> <20181102190606.48279-1-ferruh.yigit@intel.com> <20181102190606.48279-2-ferruh.yigit@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Cc: stable@dpdk.org, dev@dpdk.org To: Ferruh Yigit Return-path: In-Reply-To: <20181102190606.48279-2-ferruh.yigit@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 02/11/2018 20:06, Ferruh Yigit: > build error: > In function =E2=80=98eal_plugin_add=E2=80=99, > .../lib/librte_eal/common/eal_common_options.c:225:2: > error: =E2=80=98strncpy=E2=80=99 output may be truncated copying 4095= bytes from a > string of length 4095 [-Werror=3Dstringop-truncation] > strncpy(solib->name, path, PATH_MAX-1); >=20 > strncpy may result a not null-terminated string, > replaced it with strlcpy >=20 > Fixes: fa9cdc6f8410 ("eal: move plugin loading from linuxapp to common") > Cc: stable@dpdk.org >=20 > Signed-off-by: Ferruh Yigit Series applied, thanks