aboutsummaryrefslogtreecommitdiffstats
path: root/libinstaller
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-19 12:41:31 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-19 12:41:31 -0700
commitdba2e3126331ba1690fba06ad18be9acc66c5978 (patch)
tree6f4d97e2971e526329dc74fa1f744e0ad39fedbe /libinstaller
parentb7cd982475b9fe9b4b2b2bb6e3b3935756ce006d (diff)
downloadlwip-dba2e3126331ba1690fba06ad18be9acc66c5978.tar.gz
lwip-dba2e3126331ba1690fba06ad18be9acc66c5978.tar.xz
lwip-dba2e3126331ba1690fba06ad18be9acc66c5978.zip
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 <hpa@zytor.com>
Diffstat (limited to 'libinstaller')
-rw-r--r--libinstaller/syslxint.h2
1 files changed, 1 insertions, 1 deletions
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))