From f580c1bd27953e9544771c4a388abd79d3394a13 Mon Sep 17 00:00:00 2001 From: rsun3 Date: Mon, 4 May 2009 08:51:40 +0000 Subject: 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 --- MdeModulePkg/Library/UefiHiiLib/HiiString.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } // -- cgit v1.2.3