aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils
diff options
context:
space:
mode:
authorMichael Büsch <mb@bu3sch.de>2010-09-04 05:40:56 +0000
committerMichael Büsch <mb@bu3sch.de>2010-09-04 05:40:56 +0000
commitef67285052e7e7e72c9609ad2721436c3bd26f0f (patch)
treed6dd282bbc1cbfa11c83b1dae30fb1505b08ca80 /tools/firmware-utils
parent543c651b56af6448ff7c5565f95edf3d522133e3 (diff)
downloadupstream-ef67285052e7e7e72c9609ad2721436c3bd26f0f.tar.gz
upstream-ef67285052e7e7e72c9609ad2721436c3bd26f0f.tar.bz2
upstream-ef67285052e7e7e72c9609ad2721436c3bd26f0f.zip
Zcomax device firmware tool endianness fix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22885 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/firmware-utils')
-rw-r--r--tools/firmware-utils/src/mkzcfw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mkzcfw.c b/tools/firmware-utils/src/mkzcfw.c
index d438f03739..7674e706c9 100644
--- a/tools/firmware-utils/src/mkzcfw.c
+++ b/tools/firmware-utils/src/mkzcfw.c
@@ -297,7 +297,7 @@ static int build_fw(void)
/* fill firmware header */
hdr = (struct fw_header *) p;
hdr->magic = HOST_TO_LE32(MAGIC_FIRMWARE);
- hdr->length = HOST_TO_LE32(buflen) - sizeof(struct fw_header);
+ hdr->length = HOST_TO_LE32(buflen - sizeof(struct fw_header));
p += sizeof(struct fw_header);
/* fill kernel block header */