From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id E15251CB23 for ; Sun, 13 May 2018 12:07:15 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 663DA25B9D; Sun, 13 May 2018 06:07:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 13 May 2018 06:07:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=mesmtp; bh=FXbj7fpPU4eAQYAviWnSh19Zu8 LcOLqvb2yMCCfLGK8=; b=G31ci/aU2L7O4h7FTT5ROBTnJEEfjbK1ULszEaqkQt wcO6BOrSxZE8q0Mv5VvK7HE5Csps2sEtdKjojso4Gl8dVay96KcQf9s/q2ejp4Gd teaRzz9K0S7+WS3+Xg5YfZEwoE7ZdUohfIp7g+mH3PTlEo16PXudS/sZaz9drcfc U= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=FXbj7f pPU4eAQYAviWnSh19Zu8LcOLqvb2yMCCfLGK8=; b=KusYbOV0tr1XvZ5Tqxvkdx AgiqRsGnOVqyTOxfzz9bc9ahCy9Y06rWwqfFyoXWiY7bd0Vi9vpCjYM5K7OeeuAz X8KWdR4hpQiVyIszotkZALmgNVPcHqkaV+c0kyzpr6FkozT3RvRbOB3+Z6itCDMO knfrqCQI4YshGwzV/mtxl1/kUGcQBad9hHgxNRnWl7tGLSAv4DssOkcWze57HrAs ZN23+zgAos6t4vHxUK5Ey9W1TS4rSJdl8z+IcXvRJ4qlzDJvhG7WUo2f+qn+hcoU wVcRLOdTcNGYKD2lJ9H04DZw3yojb0HjG+JHmGzKG/508oPwiIeRRWEbmmFAmsuA == X-ME-Sender: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id ADE5DE4443; Sun, 13 May 2018 06:07:14 -0400 (EDT) From: Thomas Monjalon To: Pablo de Lara Cc: dev@dpdk.org, rosen.xu@intel.com Date: Sun, 13 May 2018 12:07:13 +0200 Message-ID: <1658878.RdDdYUol4R@xps> In-Reply-To: <20180512070217.16735-1-pablo.de.lara.guarch@intel.com> References: <20180512070217.16735-1-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] bus/fpga: use strlcpy instead of strncpy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2018 10:07:16 -0000 12/05/2018 09:02, Pablo de Lara: > Gcc 8 reports a build error: >=20 > drivers/bus/ifpga/ifpga_bus.c:161:2: error: =E2=80=98strncpy=E2=80=99 spe= cified > bound 256 equals destination size [-Werror=3Dstringop-truncation] > strncpy(afu_pr_conf.bs_path, path, sizeof(afu_pr_conf.bs_path)); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >=20 > Fixes: 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library") >=20 > Signed-off-by: Pablo de Lara Applied, thanks