From: Michael Büsch Date: Sat, 4 Sep 2010 05:40:56 +0000 (+0000) Subject: Zcomax device firmware tool endianness fix X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f40f0c001e241ae7a2e4f9fbb474f277b9b16c24;p=openwrt%2Fstaging%2Fluka.git Zcomax device firmware tool endianness fix SVN-Revision: 22885 --- 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 */