mirror of https://github.com/acidanthera/audk.git
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:
parent
b4e3c5a4b6
commit
f580c1bd27
|
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue