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 <[EMAIL PROTECTED]>
Acked-by: Carl-Daniel Hailfinger <[EMAIL PROTECTED]>


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;


--
coreboot mailing list
[email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to