mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
[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
This commit is contained in:
parent
722e7ba818
commit
c240c20361
@ -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…
x
Reference in New Issue
Block a user