aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Soltys <soltys@ziu.info>2010-04-07 10:37:25 +0200
committerH. Peter Anvin <hpa@zytor.com>2010-04-23 11:33:00 -0700
commit67496f7afab45f17a6a4ce4fc183d9e0c15ead03 (patch)
tree4a430c2adbb81a3b3f8307b83fea66d35bc92eb6
parent01fc061d9851463296347d3834185ea5c5618a68 (diff)
downloadcontrib-67496f7afab45f17a6a4ce4fc183d9e0c15ead03.tar.gz
contrib-67496f7afab45f17a6a4ce4fc183d9e0c15ead03.tar.xz
contrib-67496f7afab45f17a6a4ce4fc183d9e0c15ead03.zip
chain.c32 sethidden option fix
Hidden sectors value was applied at the wrong offset. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/modules/chain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index 160aa703..ad746ee7 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;
}