arrfab / rpms / shim

Forked from rpms/shim 5 years ago
Clone
Blob Blame History Raw
From 4aac8a1179e160397d7ef8f1e3232cfb4f3373d6 Mon Sep 17 00:00:00 2001
From: Gary Ching-Pang Lin <glin@suse.com>
Date: Thu, 6 Mar 2014 10:57:02 +0800
Subject: [PATCH 27/74] [fallback] Fix the data size for boot option comparison

Signed-off-by: Gary Ching-Pang Lin <glin@suse.com>
---
 fallback.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fallback.c b/fallback.c
index 4bde9c1..7f242e1 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)
-- 
1.9.3