summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Library
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2006-12-12 07:19:26 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2006-12-12 07:19:26 +0000
commitcdcaf781f31a867f5f37e668889af34f0e5c3067 (patch)
treeae6fa6e42a6b656c0f2eccc75fe3fcabece90859 /EdkModulePkg/Library
parent406adcd15cafe2f1f6cff0750ef9bfd8c613013a (diff)
downloadedk2-platforms-cdcaf781f31a867f5f37e668889af34f0e5c3067.tar.xz
GetCurrentLanguage() in IFR Support Library treats language variable incorrectly. It attempted to search for '\0' flag, but the variable does not have this flag. It is a string with constant width of 3 characters.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2086 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Library')
-rw-r--r--EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c b/EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c
index f4d9d4f39e..cff559cf4d 100644
--- a/EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c
+++ b/EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c
@@ -71,7 +71,7 @@ Returns:
AsciiStrCpy (Language, "eng");
}
- for (Index = 0; Language[Index] != 0; Index++) {
+ for (Index = 0; Index < 3; Index++) {
//
// Bitwise AND ascii value with 0xDF yields an uppercase value.
// Sign extend into a unicode value