aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/src
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-01-17 14:46:10 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-01-17 14:46:10 +0000
commit1ceb95ed59a9f409a02f88dd7ada339f1d4aa806 (patch)
tree3e78abee22f7de3d51cac0f0f3e5243d92644908 /tools/firmware-utils/src
parentf548e54b8da7511479c19e4b32eebfec7dacafb5 (diff)
downloadupstream-1ceb95ed59a9f409a02f88dd7ada339f1d4aa806.tar.gz
upstream-1ceb95ed59a9f409a02f88dd7ada339f1d4aa806.tar.bz2
upstream-1ceb95ed59a9f409a02f88dd7ada339f1d4aa806.zip
firmware-utils:fix a bug in mkzynfw, thanks to <theosch at gmx.de> (closes #3003)
SVN-Revision: 10218
Diffstat (limited to 'tools/firmware-utils/src')
-rwxr-xr-xtools/firmware-utils/src/mkzynfw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/mkzynfw.c b/tools/firmware-utils/src/mkzynfw.c
index 130d95a8c0..bc512c82e6 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;
}