diff options
author | Michael Büsch <mb@bu3sch.de> | 2010-09-04 05:40:56 +0000 |
---|---|---|
committer | Michael Büsch <mb@bu3sch.de> | 2010-09-04 05:40:56 +0000 |
commit | f40f0c001e241ae7a2e4f9fbb474f277b9b16c24 (patch) | |
tree | 6dad327ac74126e2ffa483d80376732e414d1f17 /tools/firmware-utils/src | |
parent | fcfe56924b2e96da41aa365ec1d0c60cd9ec797a (diff) | |
download | upstream-f40f0c001e241ae7a2e4f9fbb474f277b9b16c24.tar.gz upstream-f40f0c001e241ae7a2e4f9fbb474f277b9b16c24.tar.bz2 upstream-f40f0c001e241ae7a2e4f9fbb474f277b9b16c24.zip |
Zcomax device firmware tool endianness fix
SVN-Revision: 22885
Diffstat (limited to 'tools/firmware-utils/src')
-rw-r--r-- | tools/firmware-utils/src/mkzcfw.c | 2 |
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 */ |