[syslinux] [PATCH] chain.c32 sethidden option fix
Michal Soltys
soltys at ziu.info
Wed Apr 7 01:37:25 PDT 2010
Hidden sectors value was applied at the wrong offset.
---
com32/modules/chain.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 160aa70..ad746ee 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -982,7 +982,7 @@ int main(int argc, char *argv[])
* possibly other boot loaders which use the same format.
*/
if (partinfo && opt.sethidden) {
- *((uint32_t *)(char *)data[ndata].data + 28) =
+ *(uint32_t *)((char *)data[ndata].data + 28) =
partinfo->start_lba;
}
--
1.6.3.1
More information about the Syslinux
mailing list