firmware-utils/mktplinkfw: allow to align the rootfs on a specified boundary
[openwrt.git] / tools / firmware-utils / src / trx.c
index 426a6b5..8e95d98 100644 (file)
@@ -276,7 +276,7 @@ int main(int argc, char **argv)
                                                (fsmark)?fsmark:cur_len - offsetof(struct trx_header, flag_version));
        p->crc32 = STORE32_LE(p->crc32);
 
-       p->len = (fsmark)?fsmark:cur_len - offsetof(struct trx_header, flag_version);
+       p->len = STORE32_LE((fsmark) ? fsmark : cur_len);
        p->len = STORE32_LE(p->len);
 
        /* restore TRXv2 bin-header */
This page took 0.025147 seconds and 4 git commands to generate.