projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
firmware-utils: mkmylofw: fix blocks padding
[openwrt/openwrt.git]
/
tools
/
firmware-utils
/
src
/
mkmylofw.c
diff --git
a/tools/firmware-utils/src/mkmylofw.c
b/tools/firmware-utils/src/mkmylofw.c
index 5722365ee3bd605adef495b52c154b47a632b4d0..93eab202d9a2e38a1b4b154fe321e3a1383097fe 100644
(file)
--- a/
tools/firmware-utils/src/mkmylofw.c
+++ b/
tools/firmware-utils/src/mkmylofw.c
@@
-583,7
+583,7
@@
write_out_file(FILE *outfile, struct fw_block *block, uint32_t *crc)
fclose(f);
/* align next block on a 4 byte boundary */
- len =
ALIGN(len,4) - block->size
;
+ len =
block->size % 4
;
if (write_out_padding(outfile, len, 0xFF, crc))
return -1;