fix off-by-one error: if file ends at block boundary, must go to next file; tar_next_block will take care of getting the next block

pull/2/head
Dave Vasilevsky 14 years ago
parent 3a87ea5231
commit ee3249bd47

@ -375,7 +375,7 @@ static ssize_t tar_read(struct archive *ar, void *ref, const void **bufp) {
size += off;
off = 0;
}
if (off + size >= ib->outsize) {
if (off + size > ib->outsize) {
size = ib->outsize - off;
gArNextItem = true; // force the end of this block
} else {

Loading…
Cancel
Save