aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libflash/libffs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libflash/libffs.c b/libflash/libffs.c
index 1f5cd94..55e6895 100644
--- a/libflash/libffs.c
+++ b/libflash/libffs.c
@@ -244,7 +244,7 @@ static struct ffs_entry *ffs_get_part(struct ffs_handle *ffs, uint32_t index,
if (index > ffs->hdr.entry_count)
return NULL;
if (out_offset)
- *out_offset = offset;
+ *out_offset = ffs->toc_offset + offset;
return (struct ffs_entry *)(ffs->cache + offset);
}