From: Gabor Juhos Date: Sat, 3 Dec 2011 16:57:21 +0000 (+0000) Subject: firmware-utils/mktplinkfw: fix combined image creation X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=81cda3e2f1cc7ae3c55185209134ee0cca2d0b27;p=openwrt%2Fstaging%2Fstintel.git firmware-utils/mktplinkfw: fix combined image creation SVN-Revision: 29409 --- diff --git a/tools/firmware-utils/src/mktplinkfw.c b/tools/firmware-utils/src/mktplinkfw.c index 04234fd63d..a1669cee5a 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;