summaryrefslogtreecommitdiff
path: root/fallback.c
diff options
context:
space:
mode:
authorGary Ching-Pang Lin <glin@suse.com>2014-05-13 13:24:12 -0400
committerPeter Jones <pjones@redhat.com>2014-05-13 13:24:12 -0400
commit30cead3b403650d320926971b671b4cda3d609e5 (patch)
tree1fe21ddc1fb51f492677be29f889dc360ee9fa3f /fallback.c
parentec7eddbf05abd6b721b1f1f0fa6c1816d35ddc09 (diff)
downloadefi-boot-shim-30cead3b403650d320926971b671b4cda3d609e5.tar.gz
efi-boot-shim-30cead3b403650d320926971b671b4cda3d609e5.zip
[fallback] Fix the data size for boot option comparison
Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
Diffstat (limited to 'fallback.c')
-rw-r--r--fallback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fallback.c b/fallback.c
index 4bde9c10..7f242e1c 100644
--- a/fallback.c
+++ b/fallback.c
@@ -231,7 +231,7 @@ find_boot_option(EFI_DEVICE_PATH *dp, CHAR16 *filename, CHAR16 *label,
{
unsigned int size = sizeof(UINT32) + sizeof (UINT16) +
StrLen(label)*2 + 2 + DevicePathSize(dp) +
- StrLen(arguments) * 2 + 2;
+ StrLen(arguments) * 2;
CHAR8 *data = AllocateZeroPool(size);
if (!data)