Fix a bug in UefiHiiLib. The size for allocating a buffer is StrSize instead of StrLen.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8235 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
rsun3 2009-05-04 08:51:40 +00:00
parent b4e3c5a4b6
commit f580c1bd27
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ HiiSetString (
//
// Allocate a copy of the SupportLanguages string that passed in
//
AllocatedLanguages = AllocateCopyPool (AsciiStrLen (SupportedLanguages), SupportedLanguages);
AllocatedLanguages = AllocateCopyPool (AsciiStrSize (SupportedLanguages), SupportedLanguages);
}
//