]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/UefiHiiLib/HiiString.c
Fix a bug in UefiHiiLib. The size for allocating a buffer is StrSize instead of StrLen.
[mirror_edk2.git] / MdeModulePkg / Library / UefiHiiLib / HiiString.c
index f6569754b25359f3ff9fe478f51e7d8c8bf73658..b61a9958d0d1830737b947c9ad1fc1d79d4c382a 100644 (file)
@@ -80,7 +80,7 @@ HiiSetString (
     //\r
     // Allocate a copy of the SupportLanguages string that passed in\r
     //\r
-    AllocatedLanguages = AllocateCopyPool (AsciiStrLen (SupportedLanguages), SupportedLanguages);\r
+    AllocatedLanguages = AllocateCopyPool (AsciiStrSize (SupportedLanguages), SupportedLanguages);\r
   }\r
 \r
   //\r