diff options
| -rw-r--r-- | utils/sbtools/sbtoelf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/sbtools/sbtoelf.c b/utils/sbtools/sbtoelf.c index b430e07..54daf7b 100644 --- a/utils/sbtools/sbtoelf.c +++ b/utils/sbtools/sbtoelf.c @@ -595,7 +595,7 @@ static void extract(unsigned long filesize) char name[5]; fill_section_name(name, tag->identifier); int pos = offset; - int size = (tag->len - 1) * BLOCK_SIZE; /* command include itself */ + int size = tag->len * BLOCK_SIZE; int data_sec = !(tag->flags & SECTION_BOOTABLE); int encrypted = !(tag->flags & SECTION_CLEARTEXT); |