From 5fd261fc89e3e871ea5eda5245f9ade17c0063cb Mon Sep 17 00:00:00 2001 From: mb Date: Sat, 4 Sep 2010 05:40:56 +0000 Subject: Zcomax device firmware tool endianness fix git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22885 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/firmware-utils/src/mkzcfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/firmware-utils/src/mkzcfw.c b/tools/firmware-utils/src/mkzcfw.c index d438f0373..7674e706c 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 */ -- cgit v1.2.3