Skip to content

Commit

Permalink
OcHiiDatabaseLib: Fix incorrect AllocateCopyPool size
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebeaton committed Aug 24, 2023
1 parent 3a52965 commit b71e159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/OcHiiDatabaseLib/ConfigKeywordHandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b71e159

Please sign in to comment.