summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-09-14 12:14:24 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-09-14 12:14:24 +0000
commit781d59ec623fea8e082fb2a5caf1f18828ea9a73 (patch)
tree42bb4017c92f41b9319d5ea7facf15e580e935b1
parentb25d6e0c964f80dc85434aced42b6fd39c974cf5 (diff)
downloadrockbox-781d59ec623fea8e082fb2a5caf1f18828ea9a73.tar.gz
rockbox-781d59ec623fea8e082fb2a5caf1f18828ea9a73.tar.bz2
rockbox-781d59ec623fea8e082fb2a5caf1f18828ea9a73.zip
sbtools: relax file size condition (easier to work with)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30543 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--utils/sbtools/sbtoelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sbtools/sbtoelf.c b/utils/sbtools/sbtoelf.c
index d729357a56..50a23e56b3 100644
--- a/utils/sbtools/sbtoelf.c
+++ b/utils/sbtools/sbtoelf.c
@@ -371,7 +371,7 @@ static void extract(unsigned long filesize)
if(memcmp(sb_header->signature, "STMP", 4) != 0)
bugp("Bad signature");
- if(sb_header->image_size * BLOCK_SIZE != filesize)
+ if(sb_header->image_size * BLOCK_SIZE > filesize)
bugp("File size mismatch");
if(sb_header->header_size * BLOCK_SIZE != sizeof(struct sb_header_t))
bugp("Bad header size");