From f5e09ec26bd03490903330f121b18b8aaa56cf85 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Tue, 24 May 2016 11:33:20 -0400
Subject: [PATCH] efibootmgr: fix usage of efi_loadopt_path() /again/.

Signed-off-by: Peter Jones <pjones@redhat.com>
---
 src/efibootmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/efibootmgr.c b/src/efibootmgr.c
index baefa68..199eb28 100644
--- a/src/efibootmgr/efibootmgr.c
+++ b/src/efibootmgr/efibootmgr.c
@@ -848,7 +848,7 @@ show_boot_vars()
 
 			pathlen = efi_loadopt_pathlen(load_option,
 						      boot->data_size);
-			dp = efi_loadopt_path(load_option, pathlen);
+			dp = efi_loadopt_path(load_option, boot->data_size);
 			rc = efidp_format_device_path(text_path, text_path_len,
 						      dp, pathlen);
 			if (rc < 0)
-- 
1.9.1 
