The test if a file can fit in an image considers the current offset
twice. So a image that would fit is too big.
Thanks-to: Michael Kurz <michi.kurz@googlemail.com>
SVN-Revision: 21445
next_offs = ALIGN(*offset, block->align);
avail = board->flash_size - board->romio_offs - next_offs;
- if (next_offs + block->file_size > avail) {
+ if (block->file_size > avail) {
ERR("file %s is too big, offset = %u, size=%u,"
" align = %u", block->file_name,
(unsigned)next_offs,