From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id EF23A1C625; Fri, 11 May 2018 14:48:20 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 May 2018 05:48:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,388,1520924400"; d="scan'208";a="198541408" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by orsmga004.jf.intel.com with ESMTP; 11 May 2018 05:48:17 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.150]) by IRSMSX152.ger.corp.intel.com ([169.254.6.199]) with mapi id 14.03.0319.002; Fri, 11 May 2018 13:48:17 +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 Date: Fri, 11 May 2018 12:48:16 +0000 Message-ID: References: <152600304856.53146.9681482138854493833.stgit@localhost.localdomain> <152600316103.53146.10955338688055072616.stgit@localhost.localdomain> <1a5248e0-d33f-db7c-748e-39805a111aa2@warmcat.com> In-Reply-To: <1a5248e0-d33f-db7c-748e-39805a111aa2@warmcat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTlmM2NhZWYtNjBmZi00MDIyLTkxMjUtYTA1ZmRmZTI3MTYyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkJRcDAxTEVXYjJwUGZGSmNJUlwvVXNsbThUN1dUSEh5bHBnYmRKNDZ3Q2RzPSJ9 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 12:48:22 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW5keSBHcmVlbiBbbWFp bHRvOmFuZHlAd2FybWNhdC5jb21dDQo+IFNlbnQ6IEZyaWRheSwgTWF5IDExLCAyMDE4IDExOjQ4 IEFNDQo+IFRvOiBEZSBMYXJhIEd1YXJjaCwgUGFibG8gPHBhYmxvLmRlLmxhcmEuZ3VhcmNoQGlu dGVsLmNvbT47IGRldkBkcGRrLm9yZw0KPiBDYzogc3RhYmxlQGRwZGsub3JnOyBNb2R5LCBSYXNl c2ggPFJhc2VzaC5Nb2R5QGNhdml1bS5jb20+OyBQYXRpbCwgSGFyaXNoDQo+IDxIYXJpc2guUGF0 aWxAY2F2aXVtLmNvbT47IFNoYWhlZC5TaGFpa2hAY2F2aXVtLmNvbQ0KPiBTdWJqZWN0OiBSZTog W2RwZGstZGV2XSBbUEFUQ0ggdjQgMDkvMThdIG5ldC9xZWRl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