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 724CCAC1BE5 for ; Thu, 26 Oct 2023 23:54:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=piRXySd1ndpkAeH6DGDMztuL9qYuZoIwx8ANJZ5l9ns=; 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=1698364448; v=1; b=R10c1Ts9D67PEP7WZ1lQjQxm0FAf8DWBfmYUQPIyCWnOKvvol8kk2QzFWtHJURXTf5CDATmk HXHU2d/tYYUkqUv2g4Vs49X+xQoTbd6FN42lJbKGsLP0brR4Oc1dAVtFDHHFcS3krRcqf6QZED6 qdAlE2UqyZRNxV/uAE6nEKo4= X-Received: by 127.0.0.2 with SMTP id Z3OjYY7687511xpqNMy5FQcE; Thu, 26 Oct 2023 16:54:08 -0700 X-Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by mx.groups.io with SMTP id smtpd.web11.86072.1698364446408328049 for ; Thu, 26 Oct 2023 16:54:06 -0700 X-Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-507c78d258fso2247713e87.2 for ; Thu, 26 Oct 2023 16:54:06 -0700 (PDT) X-Gm-Message-State: mdeofZiSfNcv9dz1ovRfcYQix7686176AA= X-Google-Smtp-Source: AGHT+IGFvy7IEzFcAqll19iS16n0bGfP6j8BqFxoIg4cw1M3bjqeM4SK0fYf3ILQtQbJVlzSa5MB5A== X-Received: by 2002:ac2:5234:0:b0:4fd:c844:6a43 with SMTP id i20-20020ac25234000000b004fdc8446a43mr631511lfl.43.1698364444446; Thu, 26 Oct 2023 16:54:04 -0700 (PDT) X-Received: from localhost.localdomain ([79.164.221.98]) by smtp.gmail.com with ESMTPSA id u8-20020a056512040800b00507a8789b43sm39389lfk.269.2023.10.26.16.54.03 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 26 Oct 2023 16:54:03 -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] [edk2-redfish-client][PATCH v2 09/11] RedfishClientPkg: fix StrnCpyS arguments Date: Fri, 27 Oct 2023 02:53:52 +0300 Message-Id: <20231026235354.67625-10-mike.maslenkin@gmail.com> In-Reply-To: <20231026235354.67625-1-mike.maslenkin@gmail.com> References: <20231026235354.67625-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=R10c1Ts9; 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 (#110154): https://edk2.groups.io/g/devel/message/110154 Mute This Topic: https://groups.io/mt/102211778/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-