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)
commit6282fe6d3a4ce239c6341cd36a525822bde5dae0
tree0ffa5eb8db6d00338617af2c0b48a01eeea8dd82
parentacc7a4d26a81c5326015f87e8229fa8df5348f3b
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