Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp377920ybk; Fri, 15 May 2020 03:09:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8ROQlbZj5OQGpXe7c/+PSAVVNE5VSIGSlfDoA2mMPP8W1k1qWwBecFpEbAAHBVEpizHuR X-Received: by 2002:a17:906:a441:: with SMTP id cb1mr1897588ejb.45.1589537361115; Fri, 15 May 2020 03:09:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589537361; cv=none; d=google.com; s=arc-20160816; b=HVZuKy/5vQ+oV4d1fC5bFuDk+4q7v7s+iqgyPMXyJ2y9moOeT0YnSH0xA6BzV4cLrz LJSIhIzqoBvjOn8ETM+kxL1+fxbKGEg5FJD/8sJpjyKxM1OSdwIjF81xVY3yXj2Awe8N rU9CFBRjiCwLUy1H/3QBWlMBR6/U7JyNi3qObxqbVFrplKv06omvX7nJ0VBF9iYRGC6S AlzTXpDPaPf3XqMBVmPqC8eVfx99HHZDB5o184z77/JR+4+zbRmzARG3lNak91L76O09 UpzpE/4+NeTb1Icrb04BP2q7mu2XHPOzLCDpngO/158HlFhR7iqV8aTBFdR4ponkIhCM guJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=RQIWCw9E0EL8sgOkrQ+WbYahSgYK4T6So5anNQWya9U=; b=uB/wPd6nJwZ0hBOpDJMyYtgoR9ngtq6daueTCYr61ypBmnS8aRNt/XaJ6+1lcg3/1P rAl+cE36kvq5avFuTk/Hqa1nNe2Ptrr7mzDiVMrFB4V/lE2Ekcewzd7uLXnzQRXZQNLK WYipTxCY+WpUYCmrKbHfkUMxJg9q6Tfg+pmJHboVRreOUnE2lkpZkkWIH0cQrK4Va9b/ QGVjCRBR76wXAN4ild6E9VpDKmbrdVcuEutt9Ef0GWcbS8kxQQKoQn90/iS3l1ORCSUy acnKJ/PQJIx3OpXaTp/GLSu860yP7w6fwFfnLOpbYesvx4FarYXAWOn8DRE6zVjl/62Q kMSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Fe4lJFqC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i27si909017ejb.63.2020.05.15.03.08.57; Fri, 15 May 2020 03:09:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Fe4lJFqC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728267AbgEOKFf (ORCPT + 99 others); Fri, 15 May 2020 06:05:35 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:25915 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728228AbgEOKFe (ORCPT ); Fri, 15 May 2020 06:05:34 -0400 X-UUID: 7088b99243a04af7a18c84445ff11d5e-20200515 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=RQIWCw9E0EL8sgOkrQ+WbYahSgYK4T6So5anNQWya9U=; b=Fe4lJFqClzO20Ko9TjlAERETtS112zMCSZdhfrMU2xDSalmj6/yg4dpn80UlfdfrVAdJwmh2ciNLXqnhYyIbZFiVuHwH5PuR6CZBmE10Gq6l2fYjgk16aL3QEDKc9qcZTfhAsC9riEuDViyLL+WcwUq4fmVPj6oY4kvNQJu2JjE=; X-UUID: 7088b99243a04af7a18c84445ff11d5e-20200515 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1026002086; Fri, 15 May 2020 18:05:31 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 15 May 2020 18:05:25 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 15 May 2020 18:05:26 +0800 From: Miles Chen To: Alasdair Kergon , Mike Snitzer , CC: , , , Miles Chen Subject: [PATCH] dm: replace strncpy() with strscpy() Date: Fri, 15 May 2020 18:05:28 +0800 Message-ID: <20200515100528.14341-1-miles.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 704E7B1D95B5A2015993205326258A150957E452D2B16B36C86F62849D97192C2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org UmVwbGFjZSBzdHJuY3B5KCkgd2l0aCBzdHJzY3B5KCkgdG8gZ3VhcmFudGVlIGEgTlVMTC10ZXJt aW5hdGVkDQpzdHJpbmcuDQoNCkRldGVjdGVkIGJ5IENvdmVyaXR5Lg0KDQpTaWduZWQtb2ZmLWJ5 OiBNaWxlcyBDaGVuIDxtaWxlcy5jaGVuQG1lZGlhdGVrLmNvbT4NCi0tLQ0KIGRyaXZlcnMvbWQv ZG0taW9jdGwuYyB8IDIgKy0NC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