From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6071242BF2; Thu, 1 Jun 2023 17:02:52 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4178F42D6C; Thu, 1 Jun 2023 17:01:27 +0200 (CEST) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mails.dpdk.org (Postfix) with ESMTP id 7952542D63 for ; Thu, 1 Jun 2023 17:01:24 +0200 (CEST) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-53fa455cd94so448817a12.2 for ; Thu, 01 Jun 2023 08:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20221208.gappssmtp.com; s=20221208; t=1685631683; x=1688223683; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=djgZTxoRoEqcBlTmlHpwVyCDIEy5aJcPb5uWrzyUU/g=; b=owooBmqpTMd/D9oUgXOLQj2svAtUNv9AneO87XWAHMc8Jv86nLgAf7euATtwfXEe21 eo3cXN6LVV1ZDlslUEd/h9RlMvTYWQCaG1nLEng+BmxH6+piecuWKF/tAQXQYQOE0ldt MhisQrDICJEzocWWfNE0d51TG6ehgjFgj+Q21mJz+rfhk45aJ8AoDFgS4VJaI+OZsoN4 4OMA/wkx9SWTcDpKI6CsCUZgH/bNDuv/b3b+/ONo9Np0eBiFLPmfZ9EGYDT0D+dgYFSY w2Eq+tYCA9CMXE9aex/ggW2BVi7EPCtD/TPw9vRuMnkpKtITZh1bQSfOVyNmzzKroefZ NnbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685631683; x=1688223683; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=djgZTxoRoEqcBlTmlHpwVyCDIEy5aJcPb5uWrzyUU/g=; b=jNZliAAy0n9Oo7KAYd+5AOlvyWaJsSxYUJJXX2xSsJ471VD4LRViOn1ZwncaDR4NOc CGJRrzpf804SkPQpKyQs1Pq/LARZznmzpB+YtVdliubo+MtE0mu3psmogJRJKUrBPvL8 LNUInviSeG0RV8exg6MTI48eNFEPtYFfKOTqjDaKsLtlWnhLkL4/TIDsiXxipSPHhYTh /x/GU86c8WytcBWqNgLlI4b3yslsTO9J03gloIhpH8Phvq+mm0e8nseuRvKPHb2IyIcD Our4CLmRZjSv+awXmfIG6pX3rggEFJvFDDqyZYASOZuy5s/w6rpikN9arS4QFE5bFhq0 hAxA== X-Gm-Message-State: AC+VfDxE6FALhUQep9UNxH+msuCPw1kZQpgTwxn85n1nYfjKMZDzrbwB ll+VU+XbuNmf/QWMqbW80jJvhMkKtB2+AWlFKQGV5g== X-Google-Smtp-Source: ACHHUZ5ENvqwab7lqQltoBeF5nEA+PCZ9oA7k1aoGG6e5W7PkvirzhCPEDjG43Gv7XCzOle1c7n5iA== X-Received: by 2002:a17:903:22c8:b0:1b0:6e1:4b9f with SMTP id y8-20020a17090322c800b001b006e14b9fmr6919880plg.43.1685631683408; Thu, 01 Jun 2023 08:01:23 -0700 (PDT) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id ij9-20020a170902ab4900b001ac40488620sm3661955plb.92.2023.06.01.08.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 08:01:23 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Gagandeep Singh , Hemant Agrawal Subject: [PATCH 09/25] crypto/dpaa_sec: replace snprintf with strlcpy Date: Thu, 1 Jun 2023 08:00:50 -0700 Message-Id: <20230601150106.18375-10-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230601150106.18375-1-stephen@networkplumber.org> References: <20230601150106.18375-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Suggested by devtools/cocci/strlcpy-with-header.cocci Signed-off-by: Stephen Hemminger --- drivers/crypto/dpaa_sec/dpaa_sec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index db5268384786..0df3a9f1e9b9 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -3740,7 +3740,7 @@ cryptodev_dpaa_sec_probe(struct rte_dpaa_driver *dpaa_drv __rte_unused, if (rte_eal_process_type() != RTE_PROC_PRIMARY) return 0; - snprintf(cryptodev_name, sizeof(cryptodev_name), "%s", dpaa_dev->name); + strlcpy(cryptodev_name, dpaa_dev->name, sizeof(cryptodev_name)); cryptodev = rte_cryptodev_pmd_allocate(cryptodev_name, rte_socket_id()); if (cryptodev == NULL) -- 2.39.2