diff --git a/src/main.c b/src/main.c index a9d4ba6..82b262e 100644 --- a/src/main.c +++ b/src/main.c @@ -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)); }