projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fea19ae
)
firmware-utils/mkcsysimg: minor bugfix
author
Gabor Juhos
<juhosg@openwrt.org>
Thu, 25 Jun 2009 09:39:30 +0000
(09:39 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Thu, 25 Jun 2009 09:39:30 +0000
(09:39 +0000)
SVN-Revision: 16556
tools/firmware-utils/src/mkcsysimg.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/mkcsysimg.c
b/tools/firmware-utils/src/mkcsysimg.c
index 0e9392dde8062f28f799470f88172fb5466618f9..4f2352a60e7851f7a55738fa57f9062562d27258 100644
(file)
--- a/
tools/firmware-utils/src/mkcsysimg.c
+++ b/
tools/firmware-utils/src/mkcsysimg.c
@@
-577,7
+577,7
@@
block_writeout_hdr(FILE *outfile, struct csys_block *block)
/* setup header fields */
memcpy(hdr.sig, block->sig, 4);
hdr.addr = HOST_TO_LE32(block->addr);
- hdr.size = HOST_TO_LE32(block->
align-block->size_hdr
);
+ hdr.size = HOST_TO_LE32(block->
size - block->size_hdr - block->size_csum
);
DBG(1,"writing header for block");
res = write_out_data(outfile, (uint8_t *)&hdr, sizeof(hdr),NULL);