[syslinux:master] chain.c32: fix specification of disk by GUID (UUID)
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Sun Mar 13 22:21:15 PDT 2011
Commit-ID: cf4679d793b1fa74ba9ad25d1bdd869dd805f712
Gitweb: http://syslinux.zytor.com/commit/cf4679d793b1fa74ba9ad25d1bdd869dd805f712
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Sun, 13 Mar 2011 22:14:47 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Sun, 13 Mar 2011 22:14:47 -0700
chain.c32: fix specification of disk by GUID (UUID)
Fix specification of disk by GUID, broken due to an incorrect pointer.
Reported-by: Szymon H <bodwick at gmail.com>
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
com32/modules/chain.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 89489d1..7071094 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------- *
*
* Copyright 2003-2009 H. Peter Anvin - All Rights Reserved
- * Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
+ * Copyright 2009-2011 Intel Corporation; author: H. Peter Anvin
* Significant portions copyright (C) 2010 Shao Miller
* [partition iteration, GPT, "fs"]
*
@@ -988,7 +988,7 @@ static int find_by_guid(const struct guid *gpt_guid,
#if DEBUG
gpt_dump(header);
#endif
- is_me = !memcmp(&header->disk_guid, &gpt_guid, sizeof(*gpt_guid));
+ is_me = !memcmp(&header->disk_guid, gpt_guid, sizeof(*gpt_guid));
free(header);
if (!is_me) {
/* Check for a matching partition */
More information about the Syslinux-commits
mailing list