Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Qiu Shumin <shumin....@intel.com> --- MdeModulePkg/Universal/CapsulePei/UefiCapsule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c b/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c index 6b934c9..3184eb1 100644 --- a/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c +++ b/MdeModulePkg/Universal/CapsulePei/UefiCapsule.c @@ -583,7 +583,7 @@ GetCapsuleDescriptors ( (VOID **) &PPIVariableServices ); if (Status == EFI_SUCCESS) { - StrCpy (CapsuleVarName, EFI_CAPSULE_VARIABLE_NAME); + StrCpyS (CapsuleVarName, sizeof(CapsuleVarName)/sizeof(CHAR16), EFI_CAPSULE_VARIABLE_NAME); TempVarName = CapsuleVarName + StrLen (CapsuleVarName); Size = sizeof (CapsuleDataPtr64); while (1) { @@ -773,7 +773,7 @@ CapsuleCoalesce ( goto Done; } Size = sizeof (CapsuleDataPtr64); - StrCpy (CapsuleVarName, EFI_CAPSULE_VARIABLE_NAME); + StrCpyS (CapsuleVarName, sizeof(CapsuleVarName)/sizeof(CHAR16), EFI_CAPSULE_VARIABLE_NAME); TempVarName = CapsuleVarName + StrLen (CapsuleVarName); while (TRUE) { if (Index > 0) { -- 1.9.5.msysgit.1 ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel