From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 8A6DF1B7A4 for ; Tue, 15 May 2018 10:18:40 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 May 2018 01:18:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,403,1520924400"; d="scan'208";a="54434658" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga004.fm.intel.com with ESMTP; 15 May 2018 01:18:39 -0700 Received: from fmsmsx120.amr.corp.intel.com (10.18.124.208) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 15 May 2018 01:18:39 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx120.amr.corp.intel.com (10.18.124.208) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 15 May 2018 01:18:38 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.40]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.179]) with mapi id 14.03.0319.002; Tue, 15 May 2018 16:18:36 +0800 From: "Yao, Lei A" To: Andy Green , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v5 03/16] bus/pci: replace strncpy dangerous code Thread-Index: AQHT6ZNfSuFVB+OO7Ua49SD9ZikhKKQwUwuw//+RlgCAAJKlMA== Date: Tue, 15 May 2018 08:18:35 +0000 Message-ID: <2DBBFF226F7CF64BAFCA79B681719D953A449AA3@SHSMSX101.ccr.corp.intel.com> References: <152608956198.121204.14844325841690943774.stgit@localhost.localdomain> <152608967931.121204.3086768884047081432.stgit@localhost.localdomain> <2DBBFF226F7CF64BAFCA79B681719D953A44992E@SHSMSX101.ccr.corp.intel.com> <24ddc6ec-87cf-5955-8fb8-dac4a268ac5b@warmcat.com> In-Reply-To: <24ddc6ec-87cf-5955-8fb8-dac4a268ac5b@warmcat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzVmZTAwYzQtYWQxZS00NTAyLThkYjEtNWEwMmUwNzA0NTQ5IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjlaUENkd1lJa1lRQlBIUjNuTmF5dHB2QUlrSCtnN0JCbUVlaFlMUjU2VGs9In0= x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v5 03/16] bus/pci: replace strncpy dangerous code 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: Tue, 15 May 2018 08:18:41 -0000 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogQW5keSBHcmVlbiBbbWFp bHRvOmFuZHlAd2FybWNhdC5jb21dDQo+IFNlbnQ6IFR1ZXNkYXksIE1heSAxNSwgMjAxOCAzOjMz IFBNDQo+IFRvOiBZYW8sIExlaSBBIDxsZWkuYS55YW9AaW50ZWwuY29tPjsgZGV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