[fallback] Fix the data size for boot option comparison

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
This commit is contained in:
Gary Ching-Pang Lin 2014-05-13 13:24:12 -04:00 committed by Peter Jones
parent ec7eddbf05
commit 30cead3b40

View File

@ -231,7 +231,7 @@ find_boot_option(EFI_DEVICE_PATH *dp, CHAR16 *filename, CHAR16 *label,
{ {
unsigned int size = sizeof(UINT32) + sizeof (UINT16) + unsigned int size = sizeof(UINT32) + sizeof (UINT16) +
StrLen(label)*2 + 2 + DevicePathSize(dp) + StrLen(label)*2 + 2 + DevicePathSize(dp) +
StrLen(arguments) * 2 + 2; StrLen(arguments) * 2;
CHAR8 *data = AllocateZeroPool(size); CHAR8 *data = AllocateZeroPool(size);
if (!data) if (!data)