Merge pull request #3370 from stoeckmann/lrzip_bits
lrzip: Return matching bits in bidding
This commit is contained in:
1 file changed
+2
-4
@@ -79,14 +79,12 @@ lrzip_bidder_bid(struct archive_read_filter_bidder *b,
|
||||
struct archive_read_filter *f)
|
||||
{
|
||||
const unsigned char *p;
|
||||
ssize_t len;
|
||||
int i;
|
||||
|
||||
(void)b; /* UNUSED */
|
||||
/* Start by looking at the first six bytes of the header, which
|
||||
* is all fixed layout. */
|
||||
len = 6;
|
||||
p = __archive_read_filter_ahead(f, len, NULL);
|
||||
p = __archive_read_filter_ahead(f, 6, NULL);
|
||||
if (p == NULL)
|
||||
return (0);
|
||||
|
||||
@@ -101,7 +99,7 @@ lrzip_bidder_bid(struct archive_read_filter_bidder *b,
|
||||
if ((i < 6) || (i > 10))
|
||||
return 0;
|
||||
|
||||
return (int)len;
|
||||
return (48);
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in new issue
Block a user