From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLOtT-0001yX-3o for barebox@lists.infradead.org; Wed, 23 May 2018 08:13:12 +0000 Date: Wed, 23 May 2018 10:12:59 +0200 From: Sascha Hauer Message-ID: <20180523081259.axqonqh3eaguaigp@pengutronix.de> References: <20180522222644.26425-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20180522222644.26425-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] scripts/mkimage: Fix strncpy usage To: Andrey Smirnov Cc: barebox@lists.infradead.org T24gVHVlLCBNYXkgMjIsIDIwMTggYXQgMDM6MjY6NDRQTSAtMDcwMCwgQW5kcmV5IFNtaXJub3Yg d3JvdGU6Cj4gT3JpZ2luYWwgY29kZSBwcm9kdWNlcyB0aGUgZm9sbG93aW5nIHdhcm5pbmcgd2hl biBjb21waWxlZCB3aXRoIEdDQzg6Cj4gCj4gICBIT1NUQ0MgIHNjcmlwdHMvbWtpbWFnZQo+IElu IGZ1bmN0aW9uIOKAmGltYWdlX3NldF9uYW1l4oCZLAo+ICAgICBpbmxpbmVkIGZyb20g4oCYbWFp buKAmSBhdCBzY3JpcHRzL21raW1hZ2UuYzo2MTQ6MjoKPiBzY3JpcHRzL21raW1hZ2UuYzoxNTM6 Mjogd2FybmluZzog4oCYc3RybmNweeKAmSBzcGVjaWZpZWQgYm91bmQgMzIgZXF1YWxzIGRlc3Rp bmF0aW9uIHNpemUgWy1Xc3RyaW5nb3AtdHJ1bmNhdGlvbl0KPiAgIHN0cm5jcHkoaW1hZ2VfZ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iAKPiBfX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+IGJhcmVib3ggbWFpbGluZyBsaXN0Cj4g YmFyZWJveEBsaXN0cy5pbmZyYWRlYWQub3JnCj4gaHR0cDovL2xpc3RzLmluZnJhZGVhZC5vcmcv bWFpbG1hbi9saXN0aW5mby9iYXJlYm94CgotLSAKUGVuZ3V0cm9uaXggZS5LLiAgICAgICAgICAg ICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwKSW5kdXN0cmlh bCBMaW51eCBTb2x1dGlvbnMgICAgICAgICAgICAgICAgIHwgaHR0cDovL3d3dy5wZW5ndXRyb25p eC5kZS8gIHwKUGVpbmVyIFN0ci4gNi04LCAzMTEzNyBIaWxkZXNoZWltLCBHZXJtYW55IHwgUGhv bmU6ICs0OS01MTIxLTIwNjkxNy0wICAgIHwKQW10c2dlcmljaHQgSGlsZGVzaGVpbSwgSFJBIDI2 ODYgICAgICAgICAgIHwgRmF4OiAgICs0OS01MTIxLTIwNjkxNy01NTU1IHwKCl9fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCmJhcmVib3ggbWFpbGluZyBsaXN0 CmJhcmVib3hAbGlzdHMuaW5mcmFkZWFkLm9yZwpodHRwOi8vbGlzdHMuaW5mcmFkZWFkLm9yZy9t YWlsbWFuL2xpc3RpbmZvL2JhcmVib3gK