From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id C4C66740037 for ; Fri, 29 Sep 2023 21:59:31 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=hcTyExma1HANiBzsutOHo8V/7+BaIPod9W4b0fgx3cU=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1696024770; v=1; b=CDD7EgyP/0D53kFAtCmJfTK22WFy2QinHXezmXXSAZtu7NTraYwqnn5iJjjV8o0mgSQncPM9 //BR4dV2fn0DCJAUie0w+GPAyB/sSQ8HyNuzPiVOd1+YnRGy71D2+F//n3Bhtuy9xV0OurfzIpG 6UXqX5LfY+SYN7r84NaQDa9c= X-Received: by 127.0.0.2 with SMTP id WRY9YY7687511xQ8o8wYnyAe; Fri, 29 Sep 2023 14:59:30 -0700 X-Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) by mx.groups.io with SMTP id smtpd.web10.30362.1696024769281613038 for ; Fri, 29 Sep 2023 14:59:29 -0700 X-Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-2c131ddfc95so225981431fa.0 for ; Fri, 29 Sep 2023 14:59:29 -0700 (PDT) X-Gm-Message-State: nV2ntwbXooqVyqCi0b9LPBJKx7686176AA= X-Google-Smtp-Source: AGHT+IErILYGhDw2UJziiR968sM5sdSC57ugFn/DzWHgrx/gD1VpPrXUPEJaGCuhR4l7z+QXPoGVdg== X-Received: by 2002:a2e:9214:0:b0:2bc:b88c:64ed with SMTP id k20-20020a2e9214000000b002bcb88c64edmr4982410ljg.12.1696024767422; Fri, 29 Sep 2023 14:59:27 -0700 (PDT) X-Received: from localhost.localdomain ([185.9.78.108]) by smtp.gmail.com with ESMTPSA id y24-20020a2ebb98000000b002bfe8537f37sm890178lje.33.2023.09.29.14.59.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Fri, 29 Sep 2023 14:59:27 -0700 (PDT) From: "Mike Maslenkin" To: devel@edk2.groups.io Cc: abner.chang@amd.com, nicklew@nvidia.com, igork@ami.com, Mike Maslenkin Subject: [edk2-devel] [PATCH 9/9] RedfishClientPkg: fix StrnCpyS arguments Date: Sat, 30 Sep 2023 00:59:15 +0300 Message-Id: <20230929215915.46616-10-mike.maslenkin@gmail.com> In-Reply-To: <20230929215915.46616-1-mike.maslenkin@gmail.com> References: <20230929215915.46616-1-mike.maslenkin@gmail.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,mike.maslenkin@gmail.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=CDD7EgyP; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io StrnCpyS accepts string length in characters, not in bytes. Signed-off-by: Mike Maslenkin --- RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c= b/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c index 8ac165dec59e..c19d4a46d6af 100644 --- a/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c +++ b/RedfishClientPkg/RedfishFeatureCoreDxe/RedfishFeatureCoreDxe.c @@ -331,7 +331,7 @@ NewInternalInstance ( }=0D =0D NewInternalData->NodeName =3D AllocateZeroPool (StrSize (NodeName));=0D - StrnCpyS (NewInternalData->NodeName, StrSize (NodeName), (CONST CHAR16 *= )NodeName, StrLen (NodeName));=0D + StrnCpyS (NewInternalData->NodeName, StrLen (NodeName) + 1, (CONST CHAR1= 6 *)NodeName, StrLen (NodeName));=0D NewInternalData->SiblingList =3D NULL;=0D NewInternalData->ChildList =3D NULL;=0D if (NodeIsCollection) {=0D --=20 2.32.0 (Apple Git-132) -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#109225): https://edk2.groups.io/g/devel/message/109225 Mute This Topic: https://groups.io/mt/101667469/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-