diff --git a/read.c b/read.c index 8d0aaae..4d89f48 100644 --- a/read.c +++ b/read.c @@ -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 {