From dba2e3126331ba1690fba06ad18be9acc66c5978 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 19 May 2009 12:41:31 -0700 Subject: libinstaller: fix definition of bsHeadLen 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 --- libinstaller/syslxint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libinstaller/syslxint.h b/libinstaller/syslxint.h index 39098def..3f50e32c 100644 --- a/libinstaller/syslxint.h +++ b/libinstaller/syslxint.h @@ -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)) -- cgit