diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-12-03 16:57:21 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-12-03 16:57:21 +0000 |
commit | 81cda3e2f1cc7ae3c55185209134ee0cca2d0b27 (patch) | |
tree | 563ac0c093a6cf16cf0500e357507504e78d1906 /tools/firmware-utils | |
parent | 9a2005e5e646d283f13012b976e548b664253b78 (diff) | |
download | mtk-20170518-81cda3e2f1cc7ae3c55185209134ee0cca2d0b27.zip mtk-20170518-81cda3e2f1cc7ae3c55185209134ee0cca2d0b27.tar.gz mtk-20170518-81cda3e2f1cc7ae3c55185209134ee0cca2d0b27.tar.bz2 |
firmware-utils/mktplinkfw: fix combined image creation
SVN-Revision: 29409
Diffstat (limited to 'tools/firmware-utils')
-rw-r--r-- | tools/firmware-utils/src/mktplinkfw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mktplinkfw.c b/tools/firmware-utils/src/mktplinkfw.c index 04234fd..a1669ce 100644 --- a/tools/firmware-utils/src/mktplinkfw.c +++ b/tools/firmware-utils/src/mktplinkfw.c @@ -551,7 +551,7 @@ static int build_fw(void) if (ret) goto out_free_buf; - writelen = kernel_info.file_size; + writelen = sizeof(struct fw_header) + kernel_info.file_size; if (!combined) { p = buf + rootfs_ofs; |