[syslinux:master] chain.c32 sethidden option fix
syslinux-bot for Michal Soltys
soltys at ziu.info
Fri Apr 23 11:42:25 PDT 2010
Commit-ID: 67496f7afab45f17a6a4ce4fc183d9e0c15ead03
Gitweb: http://syslinux.zytor.com/commit/67496f7afab45f17a6a4ce4fc183d9e0c15ead03
Author: Michal Soltys <soltys at ziu.info>
AuthorDate: Wed, 7 Apr 2010 10:37:25 +0200
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Fri, 23 Apr 2010 11:33:00 -0700
chain.c32 sethidden option fix
Hidden sectors value was applied at the wrong offset.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
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;
}
More information about the Syslinux-commits
mailing list