libinstaller: fix definition of bsHeadLen
authorH. Peter Anvin <hpa@zytor.com>
Tue, 19 May 2009 19:41:31 +0000 (12:41 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 19 May 2009 19:41:31 +0000 (12:41 -0700)
Correct the definition of bsHeadLen, the size of the region at the
start of the boot sector that should always be copied.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
libinstaller/syslxint.h

index 39098de..3f50e32 100644 (file)
@@ -136,7 +136,7 @@ struct boot_sector {
 } __attribute__((packed));
 
 #define bsHead      bsJump
-#define bsHeadLen   offsetof(struct boot_sector, bsJump)
+#define bsHeadLen   offsetof(struct boot_sector, bsOemName)
 #define bsCode     bs32.Code   /* The common safe choice */
 #define bsCodeLen   (offsetof(struct boot_sector, bsSignature) - \
                     offsetof(struct boot_sector, bsCode))