core: Account for file path for offset adjustments
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -328,7 +328,7 @@ build_offtab(struct cav_state *state)
|
||||
off = &off_desc->off;
|
||||
off->off = state->cur_off;
|
||||
|
||||
state->cur_off += off->size;
|
||||
state->cur_off += off->size + strlen(off_desc->path) + 1;
|
||||
write(state->out_fd, off, sizeof(*off));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user