[coreboot] r789 - coreboot-v3/lib
svn at coreboot.org
svn at coreboot.org
Mon Aug 18 23:11:05 CEST 2008
Author: hailfinger
Date: 2008-08-18 23:11:05 +0200 (Mon, 18 Aug 2008)
New Revision: 789
Modified:
coreboot-v3/lib/lar.c
Log:
Fix unexplained magic value and make it future-proof.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Modified: coreboot-v3/lib/lar.c
===================================================================
--- coreboot-v3/lib/lar.c 2008-08-18 20:31:34 UTC (rev 788)
+++ coreboot-v3/lib/lar.c 2008-08-18 21:11:05 UTC (rev 789)
@@ -114,7 +114,7 @@
for (walk = archive->start;
(walk < (char *)(archive->start + archive->len - sizeof(struct lar_header))) &&
(walk >= (char *)archive->start); walk += 16) {
- if (strncmp(walk, MAGIC, 8) != 0)
+ if (strncmp(walk, MAGIC, sizeof(header->magic)) != 0)
continue;
header = (struct lar_header *)walk;
More information about the coreboot
mailing list