From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id B228A1C6E5 for ; 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: 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 To: Stephen Hemminger 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 This one is fixed with strlcpy now.