diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-06-25 09:39:30 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-06-25 09:39:30 +0000 |
commit | d14e512f00773d75a32b700503ed4d9b113c2519 (patch) | |
tree | bb272c3bef0b51ea7ef11ca29b349bd844451bda /tools/firmware-utils/src | |
parent | fea19ae21530284a2e87bd985cc09bc15e19c223 (diff) | |
download | mtk-20170518-d14e512f00773d75a32b700503ed4d9b113c2519.zip mtk-20170518-d14e512f00773d75a32b700503ed4d9b113c2519.tar.gz mtk-20170518-d14e512f00773d75a32b700503ed4d9b113c2519.tar.bz2 |
firmware-utils/mkcsysimg: minor bugfix
SVN-Revision: 16556
Diffstat (limited to 'tools/firmware-utils/src')
-rw-r--r-- | tools/firmware-utils/src/mkcsysimg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mkcsysimg.c b/tools/firmware-utils/src/mkcsysimg.c index 0e9392d..4f2352a 100644 --- a/tools/firmware-utils/src/mkcsysimg.c +++ b/tools/firmware-utils/src/mkcsysimg.c @@ -577,7 +577,7 @@ block_writeout_hdr(FILE *outfile, struct csys_block *block) /* setup header fields */ memcpy(hdr.sig, block->sig, 4); hdr.addr = HOST_TO_LE32(block->addr); - hdr.size = HOST_TO_LE32(block->align-block->size_hdr); + hdr.size = HOST_TO_LE32(block->size - block->size_hdr - block->size_csum); DBG(1,"writing header for block"); res = write_out_data(outfile, (uint8_t *)&hdr, sizeof(hdr),NULL); |