From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fLFkS-0005XF-0I for barebox@lists.infradead.org; Tue, 22 May 2018 22:27:17 +0000 Received: by mail-pf0-x241.google.com with SMTP id a22-v6so9441024pfn.6 for ; Tue, 22 May 2018 15:27:02 -0700 (PDT) From: Andrey Smirnov Date: Tue, 22 May 2018 15:26:44 -0700 Message-Id: <20180522222644.26425-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 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: [PATCH] scripts/mkimage: Fix strncpy usage To: barebox@lists.infradead.org Cc: Andrey Smirnov T3JpZ2luYWwgY29kZSBwcm9kdWNlcyB0aGUgZm9sbG93aW5nIHdhcm5pbmcgd2hlbiBjb21waWxl ZCB3aXRoIEdDQzg6CgogIEhPU1RDQyAgc2NyaXB0cy9ta2ltYWdlCkluIGZ1bmN0aW9uIOKAmGlt YWdlX3NldF9uYW1l4oCZLAogICAgaW5saW5lZCBmcm9tIOKAmG1haW7igJkgYXQgc2NyaXB0cy9t a2ltYWdlLmM6NjE0OjI6CnNjcmlwdHMvbWtpbWFnZS5jOjE1MzoyOiB3YXJuaW5nOiDigJhzdHJu Y3B54oCZIHNwZWNpZmllZCBib3VuZCAzMiBlcXVhbHMgZGVzdGluYXRpb24gc2l6ZSBbLVdzdHJp bmdvcC10cnVuY2F0aW9uXQogIHN0cm5jcHkoaW1hZ2VfZ2V0X25hbWUoaGRyKSwgbmFtZSwgSUhf Tk1MRU4pOwogIF5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+fn5+Cgpy ZWR1Y2Ugc3BlY2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