firmware-utils/mkzynfw: don't use next_offset twice (closes #7273)
authorGabor Juhos <juhosg@openwrt.org>
Fri, 14 May 2010 09:20:34 +0000 (09:20 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Fri, 14 May 2010 09:20:34 +0000 (09:20 +0000)
commit8976d8f2ad8e3419cdc88c83bf5e827d69849a51
treec8f2f49cd8542fc604c1a8c4e316929613b4e8fa
parent65dba323f79bfac2edb41724bcff03a3e9506ab8
firmware-utils/mkzynfw: don't use next_offset twice (closes #7273)

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
tools/firmware-utils/src/mkzynfw.c