diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-01-17 14:46:10 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-01-17 14:46:10 +0000 |
commit | 1ceb95ed59a9f409a02f88dd7ada339f1d4aa806 (patch) | |
tree | 3e78abee22f7de3d51cac0f0f3e5243d92644908 /tools | |
parent | f548e54b8da7511479c19e4b32eebfec7dacafb5 (diff) | |
download | mtk-20170518-1ceb95ed59a9f409a02f88dd7ada339f1d4aa806.zip mtk-20170518-1ceb95ed59a9f409a02f88dd7ada339f1d4aa806.tar.gz mtk-20170518-1ceb95ed59a9f409a02f88dd7ada339f1d4aa806.tar.bz2 |
firmware-utils:fix a bug in mkzynfw, thanks to <theosch at gmx.de> (closes #3003)
SVN-Revision: 10218
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/firmware-utils/src/mkzynfw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mkzynfw.c b/tools/firmware-utils/src/mkzynfw.c index 130d95a..bc512c8 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; } |