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 C255F45B04; Thu, 10 Oct 2024 17:20:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A338340A8B; Thu, 10 Oct 2024 17:19:58 +0200 (CEST) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 500A940B9D for ; Thu, 10 Oct 2024 17:19:57 +0200 (CEST) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-20b9b35c7c3so9919445ad.3 for ; Thu, 10 Oct 2024 08:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728573596; x=1729178396; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=T0uNVQBy+z29WP9ZYTn1H/KbjFAi7qfCrIq17SOA7Rw=; b=AiEGI/02eIH/dlBHxoDw428ZFX3H2A1p/VgFvwJsC3VUWQoIcnkfsDW3v6REDRcPjK oSIfAzghIapmsjMyI7283/Y8lGsjS3p0bH3Lv8vEdXVVlLAP0wNZgw1UDRhYe3PwvBH8 Od2eqDUg2isADUxgdUX26l7O5fCg4v4d/8lqTgR8RE+/YAQpDXBaNle6MVoFUYWqUSWA tQuHxPRoKJlWpxrqEgGDh9nnIM3UuS4sqvmiZMW7rO7id0pnB5ArSu40E42cuy4XrMP6 hJ5YljMXfKVume5MWGPrxa1655CnFuGIwrMYX2hYizWZziMYnMOT7xFuTcaHkAyZ7TtJ mHbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728573596; x=1729178396; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T0uNVQBy+z29WP9ZYTn1H/KbjFAi7qfCrIq17SOA7Rw=; b=NBnJGz84lpv2AGaYj7xq/ib7uBztxyw8gq18rsS6TRtVbaSdNhDOqJOfvMtv36PCJM wWNUIXd76yHkj1gGZ96bgkdrekscn23SM7SX4Wva2Gx9Isy6ZNClNz9/337DfsoMfbMa X9ak+EEoJUK1if1m+iRRmPaN03IYMru5L/gQwH5pjJksU0W+83f2zIxDBWLdmOpuniA/ dmlUlqQi6ZzXjqJ8EqmQCzYO079DT7G338LUI+0CyrYX5lTY+wQbIRs/36pBKEMqCOLB vVPFcQ4m989hVdjehQv0G2eWpIOG89fJBhJipJm3RR2Mz70GWdQEMzPjASC4PpdZaypY 0j+A== X-Gm-Message-State: AOJu0Yx/ClIoaDwFaNe9SDWpf2G+eGER8ATBLW0HS/ELZPgFy/yXeWHn ShOmL3ogTJZL6gLB2uSJMjSeK5QKTc1x69noKpVPQDF0CGEN318l/NWBInHW/Ic= X-Google-Smtp-Source: AGHT+IEOYnJFDKmC8KAI7B+x7SZfFTmYDwfKj9+ZP87Ue2GckvAx2LbQHHG/8TrpBS5mX2fxJ5EqeA== X-Received: by 2002:a17:902:cf10:b0:20c:89b1:e761 with SMTP id d9443c01a7336-20c89b1e804mr39575955ad.5.1728573596526; Thu, 10 Oct 2024 08:19:56 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20c8c33cbb9sm10534835ad.249.2024.10.10.08.19.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2024 08:19:56 -0700 (PDT) Date: Thu, 10 Oct 2024 08:08:34 -0700 From: Stephen Hemminger To: Chaoyong He Cc: dev@dpdk.org, oss-drivers@corigine.com, Long Wu , Peng Zhang Subject: Re: [PATCH 01/10] net/nfp: use strlcpy for copying string Message-ID: <20241010080834.115774e3@hermes.local> In-Reply-To: <20241010091716.3631747-2-chaoyong.he@corigine.com> References: <20241010091716.3631747-1-chaoyong.he@corigine.com> <20241010091716.3631747-2-chaoyong.he@corigine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Thu, 10 Oct 2024 17:17:07 +0800 Chaoyong He wrote: > Replace 'snprintf()' with 'strlcpy()' where applicable. > Using 'strlcpy()' is safe practice when copying strings, as it > will include a null terminator. > > Signed-off-by: Chaoyong He > Reviewed-by: Long Wu > Reviewed-by: Peng Zhang > --- Acked-by: Stephen Hemminger