From: Gabor Juhos Date: Thu, 17 Jan 2008 14:46:10 +0000 (+0000) Subject: firmware-utils:fix a bug in mkzynfw, thanks to (closes #3003) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1ceb95ed59a9f409a02f88dd7ada339f1d4aa806;p=openwrt%2Fstaging%2Fdangole.git firmware-utils:fix a bug in mkzynfw, thanks to (closes #3003) SVN-Revision: 10218 --- 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; }