projects
/
project
/
firmware-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
679b8dc
)
Zcomax device firmware tool endianness fix
author
Michael Büsch
<mb@bu3sch.de>
Sat, 4 Sep 2010 05:40:56 +0000
(
05:40
+0000)
committer
Michael Büsch
<mb@bu3sch.de>
Sat, 4 Sep 2010 05:40:56 +0000
(
05:40
+0000)
SVN-Revision: 22885
src/mkzcfw.c
patch
|
blob
|
history
diff --git
a/src/mkzcfw.c
b/src/mkzcfw.c
index d438f0373965c1be025863cb67e6000e158c96e2..7674e706c99b2c6c6f21ea2efb94d6d84fc7d93f 100644
(file)
--- 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 */