diff options
Diffstat (limited to 'lib/sqfs/dir_writer.c')
-rw-r--r-- | lib/sqfs/dir_writer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqfs/dir_writer.c b/lib/sqfs/dir_writer.c index 78256a1..53e5800 100644 --- a/lib/sqfs/dir_writer.c +++ b/lib/sqfs/dir_writer.c @@ -419,7 +419,8 @@ sqfs_inode_generic_t ent.index = idx->index; ent.size = idx->ent->name_len - 1; - ptr = inode->extra + inode->num_dir_idx_bytes; + ptr = (sqfs_u8 *)inode->extra + + inode->num_dir_idx_bytes; memcpy(ptr, &ent, sizeof(ent)); memcpy(ptr + sizeof(ent), idx->ent->name, idx->ent->name_len); |