mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
firmware-utils:fix a bug in mkzynfw, thanks to <theosch at gmx.de> (closes #3003)
SVN-Revision: 10218
This commit is contained in:
parent
f548e54b8d
commit
1ceb95ed59
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user