From cdcaf781f31a867f5f37e668889af34f0e5c3067 Mon Sep 17 00:00:00 2001 From: xli24 Date: Tue, 12 Dec 2006 07:19:26 +0000 Subject: [PATCH] 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 --- EdkModulePkg/Library/EdkIfrSupportLib/IfrCommon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2