From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 01AB51BAA4 for ; Tue, 15 May 2018 08:12:16 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 May 2018 23:12:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,402,1520924400"; d="scan'208";a="224301651" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga005.jf.intel.com with ESMTP; 14 May 2018 23:12:15 -0700 Received: from fmsmsx123.amr.corp.intel.com (10.18.125.38) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 14 May 2018 23:12:15 -0700 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx123.amr.corp.intel.com (10.18.125.38) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 14 May 2018 23:12:14 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.40]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.240]) with mapi id 14.03.0319.002; Tue, 15 May 2018 14:12:12 +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 Date: Tue, 15 May 2018 06:12:12 +0000 Message-ID: <2DBBFF226F7CF64BAFCA79B681719D953A44992E@SHSMSX101.ccr.corp.intel.com> References: <152608956198.121204.14844325841690943774.stgit@localhost.localdomain> <152608967931.121204.3086768884047081432.stgit@localhost.localdomain> In-Reply-To: <152608967931.121204.3086768884047081432.stgit@localhost.localdomain> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTdjM2Q4NzItOWYwOC00N2Y1LTg3M2QtNTcwN2FhYzJhY2Y2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkJyV3h4NVI3dEJEbmp0MStTNE1LRE8yM2szZFFuYlh3bkF3NmRaWHpmMTg9In0= 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 06:12:17 -0000 SGksIEFuZHkNCg0KVGhpcyBwYXRjaCB3aWxsIGJyZWFrIHRoZSB2ZmlvLXBjaSBkcml2ZXIgb24g bXkgc2VydmVyLiANCkkgY2FuJ3QgbGF1bmNoIE5JQyB3aXRoIHZmaW8tcGNpIHVzaW5nIHRlc3Rw bWQuICBDb3VsZCB5b3UgaGF2ZSANCmEgY2hlY2sgb24gdGhpcz8gVGhhbmtzIGEgbG90IQ0KDQpN eSBzZXJ2ZXIgaW5mbzoNCk9TOiBVYnVudHUgMTYuMDQgTFRTDQpnY2M6IDUuNC4wDQprZXJuZWw6 IDQuNC4wDQpDUFU6IElud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