From f4ddb0396f7d602122eba9a24df271ad6276081e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michael=20B=C3=BCsch?= Date: Sat, 4 Sep 2010 05:40:56 +0000 Subject: [PATCH] Zcomax device firmware tool endianness fix SVN-Revision: 22885 --- src/mkzcfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkzcfw.c b/src/mkzcfw.c index d438f03..7674e70 100644 --- a/src/mkzcfw.c +++ b/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 */ -- 2.30.2