diff --git a/Library/OcHiiDatabaseLib/ConfigKeywordHandler.c b/Library/OcHiiDatabaseLib/ConfigKeywordHandler.c index 05110bd8f01..71eb8fad56d 100644 --- a/Library/OcHiiDatabaseLib/ConfigKeywordHandler.c +++ b/Library/OcHiiDatabaseLib/ConfigKeywordHandler.c @@ -1987,7 +1987,7 @@ GetNameFromId ( NULL ); if (BestLanguage == NULL) { - BestLanguage = AllocateCopyPool (L_STR_LEN ("en-US"), "en-US"); + BestLanguage = AllocateCopyPool (L_STR_SIZE ("en-US"), "en-US"); ASSERT (BestLanguage != NULL); }