From 619c2eba55ab97536e338bb320947a3adf04516a Mon Sep 17 00:00:00 2001 From: juhosg Date: Thu, 17 Jan 2008 14:46:10 +0000 Subject: [tools] firmware-utils:fix a bug in mkzynfw, thanks to (closes #3003) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10218 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/firmware-utils/src/mkzynfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3