From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id D56131C755; Fri, 11 May 2018 17:14:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 May 2018 08:14:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,389,1520924400"; d="scan'208";a="227703755" Received: from irsmsx154.ger.corp.intel.com ([163.33.192.96]) by fmsmga005.fm.intel.com with ESMTP; 11 May 2018 08:14:31 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.150]) by IRSMSX154.ger.corp.intel.com ([169.254.12.181]) with mapi id 14.03.0319.002; Fri, 11 May 2018 16:14:30 +0100 From: "De Lara Guarch, Pablo" To: Andy Green , "dev@dpdk.org" CC: "stable@dpdk.org" , "Mody, Rasesh" , "Patil, Harish" , "Shahed.Shaikh@cavium.com" Thread-Topic: [dpdk-dev] [PATCH v4 09/18] net/qede: strncpy length constant and NUL Thread-Index: AQHT6RWWIbCQpSy1gU+RP9Zin3CQ+6QqeMdA////CYCAACt0AA== Date: Fri, 11 May 2018 15:14:30 +0000 Message-ID: References: <152600304856.53146.9681482138854493833.stgit@localhost.localdomain> <152600316103.53146.10955338688055072616.stgit@localhost.localdomain> <1a5248e0-d33f-db7c-748e-39805a111aa2@warmcat.com> <7462e3b8-d0ec-a90f-0fa8-bae565ce6634@warmcat.com> In-Reply-To: <7462e3b8-d0ec-a90f-0fa8-bae565ce6634@warmcat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWRiMTRjMTYtNzAzZC00NDhhLTgxOWMtNGFhYzM1MzkwOWM5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlwvTDhhWWRXMHhRdUd1TEYzYktHRHFKMXMzNFRjQXJuK25zMk13YVBcL0grRT0ifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v4 09/18] net/qede: strncpy length constant and NUL 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: Fri, 11 May 2018 15:14:34 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW5keSBHcmVlbiBbbWFp bHRvOmFuZHlAd2FybWNhdC5jb21dDQo+IFNlbnQ6IEZyaWRheSwgTWF5IDExLCAyMDE4IDI6Mzkg UE0NCj4gVG86IERlIExhcmEgR3VhcmNoLCBQYWJsbyA8cGFibG8uZGUubGFyYS5ndWFyY2hAaW50 ZWwuY29tPjsgZGV2QGRwZGsub3JnDQo+IENjOiBzdGFibGVAZHBkay5vcmc7IE1vZHksIFJhc2Vz aCA8UmFzZXNoLk1vZHlAY2F2aXVtLmNvbT47IFBhdGlsLCBIYXJpc2gNCj4gPEhhcmlzaC5QYXRp bEBjYXZpdW0uY29tPjsgU2hhaGVkLlNoYWlraEBjYXZpdW0uY29tDQo+IFN1YmplY3Q6IFJlOiBb ZHBkay1k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