1d4e7048c9
Signed-off-by: Peter Jones <pjones@redhat.com>
27 lines
699 B
Diff
27 lines
699 B
Diff
From 895b702ac316a618f32fbdd74a6767277d48284a Mon Sep 17 00:00:00 2001
|
|
From: groxxda <ried@mytum.de>
|
|
Date: Thu, 31 Jul 2014 18:37:37 +0200
|
|
Subject: [PATCH 15/22] Compare should respect the size of the data it
|
|
compares.
|
|
|
|
---
|
|
src/efibootmgr/efibootmgr.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/efibootmgr/efibootmgr.c b/src/efibootmgr/efibootmgr.c
|
|
index ba5f54f..6b03c84 100644
|
|
--- a/src/efibootmgr/efibootmgr.c
|
|
+++ b/src/efibootmgr/efibootmgr.c
|
|
@@ -144,7 +144,7 @@ static int
|
|
compare(const void *a, const void *b)
|
|
{
|
|
int rc = -1;
|
|
- uint32_t n1, n2;
|
|
+ uint16_t n1, n2;
|
|
memcpy(&n1, a, sizeof(n1));
|
|
memcpy(&n2, b, sizeof(n2));
|
|
if (n1 < n2) rc = -1;
|
|
--
|
|
1.9.3
|
|
|