projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
firmware-utils/mktplinkfw: add support for the TL-MR3220 v1
[openwrt.git]
/
tools
/
firmware-utils
/
src
/
mkzcfw.c
diff --git
a/tools/firmware-utils/src/mkzcfw.c
b/tools/firmware-utils/src/mkzcfw.c
index
d438f03
..
7674e70
100644
(file)
--- 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);
/* 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 */
p += sizeof(struct fw_header);
/* fill kernel block header */
This page took
0.024161 seconds
and
4
git commands to generate.