diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-01-17 14:46:10 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-01-17 14:46:10 +0000 |
commit | c240c203619cdbf0a1831b11b4e9565c2f077dea (patch) | |
tree | df0fba00038e23b9fc3505d484b4532848430fc7 /tools | |
parent | 722e7ba81828ba48795721e270210d39638017b3 (diff) | |
download | master-187ad058-c240c203619cdbf0a1831b11b4e9565c2f077dea.tar.gz master-187ad058-c240c203619cdbf0a1831b11b4e9565c2f077dea.tar.bz2 master-187ad058-c240c203619cdbf0a1831b11b4e9565c2f077dea.zip |
[tools] firmware-utils:fix a bug in mkzynfw, thanks to <theosch at gmx.de> (closes #3003)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10218 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/firmware-utils/src/mkzynfw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mkzynfw.c b/tools/firmware-utils/src/mkzynfw.c index 130d95a8c0..bc512c82e6 100755 --- a/tools/firmware-utils/src/mkzynfw.c +++ b/tools/firmware-utils/src/mkzynfw.c @@ -794,7 +794,7 @@ parse_opt_block(char ch, char *arg) struct fw_block *block; int i; - if ( num_blocks > MAX_NUM_BLOCKS ) { + if ( num_blocks >= MAX_NUM_BLOCKS ) { ERR("too many blocks specified"); return -1; } |