summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library
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 /MdeModulePkg/Library
parentb4e3c5a4b6391838f6bcc16d24ba503cb7ce1c03 (diff)
downloadedk2-f580c1bd27953e9544771c4a388abd79d3394a13.zip
edk2-f580c1bd27953e9544771c4a388abd79d3394a13.tar.gz
edk2-f580c1bd27953e9544771c4a388abd79d3394a13.tar.bz2
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
Diffstat (limited to 'MdeModulePkg/Library')
-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 f656975..b61a995 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);
}
//