firmware-utils:fix a bug in mkzynfw, thanks to <theosch at gmx.de> (closes #3003)

SVN-Revision: 10218
owl
Gabor Juhos 2008-01-17 14:46:10 +00:00
parent f548e54b8d
commit 1ceb95ed59
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}