Fix a bug in UefiHiiLib. The size for allocating a buffer is StrSize instead of StrLen.
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 4 May 2009 08:51:40 +0000 (08:51 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 4 May 2009 08:51:40 +0000 (08:51 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8235 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Library/UefiHiiLib/HiiString.c

index f656975..b61a995 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