aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-12-03 16:57:21 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-12-03 16:57:21 +0000
commit2af6a7d4c43e216911c3b355579dabef85ea2e4a (patch)
tree7e11c8db63d0519336b0446e82dade9d9d17002b /tools/firmware-utils/src
parentf706282640bae5f1dbe5ce556dd4d8de2131242d (diff)
downloadmaster-187ad058-2af6a7d4c43e216911c3b355579dabef85ea2e4a.tar.gz
master-187ad058-2af6a7d4c43e216911c3b355579dabef85ea2e4a.tar.bz2
master-187ad058-2af6a7d4c43e216911c3b355579dabef85ea2e4a.zip
firmware-utils/mktplinkfw: fix combined image creation
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29409 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/firmware-utils/src')
-rw-r--r--tools/firmware-utils/src/mktplinkfw.c2
1 files changed, 1 insertions, 1 deletions
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;