chain.c32 sethidden option fix
authorMichal Soltys <soltys@ziu.info>
Wed, 7 Apr 2010 08:37:25 +0000 (10:37 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Fri, 23 Apr 2010 18:33:00 +0000 (11:33 -0700)
Hidden sectors value was applied at the wrong offset.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/modules/chain.c

index 160aa70..ad746ee 100644 (file)
@@ -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;
        }