From b71e159eee81d3d69e8fdb80335e8c2765c6f33a Mon Sep 17 00:00:00 2001 From: Mike Beaton Date: Thu, 24 Aug 2023 05:29:25 +0100 Subject: [PATCH] OcHiiDatabaseLib: Fix incorrect AllocateCopyPool size --- Library/OcHiiDatabaseLib/ConfigKeywordHandler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }