]> git.proxmox.com Git - mirror_edk2.git/commitdiff
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 f6569754b25359f3ff9fe478f51e7d8c8bf73658..b61a9958d0d1830737b947c9ad1fc1d79d4c382a 100644 (file)
@@ -80,7 +80,7 @@ HiiSetString (
     //\r
     // Allocate a copy of the SupportLanguages string that passed in\r
     //\r
     //\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
   }\r
 \r
   //\r