firmware-utils/mkzynfw: don't use next_offset twice (closes #7273)
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 14 May 2010 09:20:34 +0000 (09:20 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 14 May 2010 09:20:34 +0000 (09:20 +0000)
commitd757b8b0b49eee3f14d0714d9be4b5b8b3a6fa82
tree0ffa5eb8db6d00338617af2c0b48a01eeea8dd82
parent0ba3851aa6b4eb47b0c040692f7e126b27b26a92
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21445 3c298f89-4303-0410-b956-a3cf2f4a3e73
tools/firmware-utils/src/mkzynfw.c