core: Account for file path for offset adjustments

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-02-09 21:16:36 -05:00
parent 5637aa0e85
commit 86f3b0e54a

View File

@@ -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));
}