[tools] firmware-utils:fix a bug in mkzynfw, thanks to <theosch at gmx.de> (closes...
[openwrt/svn-archive/archive.git] / tools / firmware-utils / src / mkzynfw.c
index 130d95a..bc512c8 100755 (executable)
@@ -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;
        }