diff options
Diffstat (limited to 'omar.c')
-rw-r--r-- | omar.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -338,7 +338,7 @@ archive_extract(void) off = 512; mkpath(namebuf); } else { - off = ALIGN_UP(sizeof(hdr) + hdr->namelen + hdr->len, BLOCK_SIZE); + off = ALIGN_UP(sizeof(*hdr) + hdr->namelen + hdr->len, BLOCK_SIZE); p = (char *)hdr + sizeof(struct omar_hdr); p += hdr->namelen; extract_single(p, hdr->len, namebuf); |