summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-04 08:51:40 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2009-05-04 08:51:40 +0000
commitf580c1bd27953e9544771c4a388abd79d3394a13 (patch)
tree9732b0cf924a3f3f3c3d89653068a5210b341531
parentb4e3c5a4b6391838f6bcc16d24ba503cb7ce1c03 (diff)
downloadedk2-platforms-f580c1bd27953e9544771c4a388abd79d3394a13.tar.xz
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
-rw-r--r--MdeModulePkg/Library/UefiHiiLib/HiiString.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Library/UefiHiiLib/HiiString.c b/MdeModulePkg/Library/UefiHiiLib/HiiString.c
index f6569754b2..b61a9958d0 100644
--- a/MdeModulePkg/Library/UefiHiiLib/HiiString.c
+++ b/MdeModulePkg/Library/UefiHiiLib/HiiString.c
@@ -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);
}
//