From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <thomas@monjalon.net>
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com
 [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id B228A1C6E5
 for <dev@dpdk.org>; Wed,  4 Apr 2018 16:33:05 +0200 (CEST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41])
 by mailout.nyi.internal (Postfix) with ESMTP id 54E0421653;
 Wed,  4 Apr 2018 10:33:05 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute1.internal (MEProxy); Wed, 04 Apr 2018 10:33:05 -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=an1WNWuKvfk2GYIp6zVji3mlN6
 a7mVd75U8NNpVTE1I=; b=Gf+VYbkTbVxgIr/juPmFYSpzTbHELw2aX1CI2VIiER
 ga/wdvgqgX88Kl7MiffP6Es5NMh1mRcj8H3NgMYZqkpz0WKh30y8D6R51YM91+l7
 FukfA8tAoO3GvIwWvbsadlEowoIv/+engSVe0rNS/kAJ2DWuISiKX6YNYWpr/2NO
 Q=
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=an1WNW
 uKvfk2GYIp6zVji3mlN6a7mVd75U8NNpVTE1I=; b=aBinEP4DpD+HXwiw25oCxv
 KI+s6muBOQ2UOk0pk1A75mM4c9kfhhe6y2SHDuShvujmLe8DdbFy6E80XG5/iSL4
 n/ql1Is4eLpmTvlc62TqVlskBUEB7ErcXVd6Hjhc7+KlR0rPMU4vHnhYhKMp9nI2
 02hLiy4H5JgYWw9eHEM4wxtuFfNKo9/+4MEdQXZ2PgVCZxhCp8nU5hVVmEKapLRD
 mvy6HozEyRTyfTrQIlT93axFwgBzmsfc6xnf6dPmOrLdauMAlDW50TO59I5RsrN6
 2iYBjK67FlXGiPzVn6D6HnoCL94ioyPY2/oSqZbYEF8ShBFRo6A0JiBFEr7tu7oQ
 ==
X-ME-Sender: <xms:IeLEWsXKmB0Dmd1QwVBe8ce3GSMM7PGZjnYagg1W989msrH4X1fajQ>
Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184])
 by mail.messagingengine.com (Postfix) with ESMTPA id BC1AFE43C8;
 Wed,  4 Apr 2018 10:33:04 -0400 (EDT)
From: Thomas Monjalon <thomas@monjalon.net>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: dev@dpdk.org
Date: Wed, 04 Apr 2018 16:33:03 +0200
Message-ID: <1957924.kE1epoxS1F@xps>
In-Reply-To: <20180329170531.2478-3-stephen@networkplumber.org>
References: <20180329170531.2478-1-stephen@networkplumber.org>
 <20180329170531.2478-3-stephen@networkplumber.org>
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="UTF-8"
Subject: Re: [dpdk-dev] [PATCH v3 2/2] rte_metrics: fix strncpy truncation
	warning
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Wed, 04 Apr 2018 14:33:05 -0000

29/03/2018 19:05, Stephen Hemminger:
> Fixes:
> librte_metrics/rte_metrics.c:218:4: error: =E2=80=98strncpy=E2=80=99 spec=
ified
>  bound 64 equals destination size [-Werror=3Dstringop-truncation]
>     strncpy(names[idx_name].name,
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>      stats->metadata[idx_name].name,
>      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>      RTE_METRICS_MAX_NAME_LEN);
>      ~~~~~~~~~~~~~~~~~~~~~~~~~
>=20
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

This one is fixed with strlcpy now.