aboutsummaryrefslogtreecommitdiff
path: root/common/cmd_fastboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/cmd_fastboot.c')
-rw-r--r--common/cmd_fastboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c
index b5f0145d..5296739a 100644
--- a/common/cmd_fastboot.c
+++ b/common/cmd_fastboot.c
@@ -1318,6 +1318,7 @@ static int rx_handler (const unsigned char *buffer, unsigned int buffer_size)
printf("fastboot: %s is in sparse format\n", ptn->name);
if (!do_unsparse(interface.transfer_buffer,
ptn->start,
+ ptn->length,
slot_no)) {
printf("Writing sparsed: '%s' DONE!\n", ptn->name);
} else {