From 67496f7afab45f17a6a4ce4fc183d9e0c15ead03 Mon Sep 17 00:00:00 2001 From: Michal Soltys Date: Wed, 7 Apr 2010 10:37:25 +0200 Subject: [PATCH] chain.c32 sethidden option fix Hidden sectors value was applied at the wrong offset. Signed-off-by: H. Peter Anvin --- com32/modules/chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.7.4