From: Martin Matuska Date: Fri, 4 Dec 2020 14:12:35 +0000 (+0100) Subject: Repair gcc11 build error in archive_read_support_format_warc.c X-Git-Tag: v3.5.1~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22568630ff59682e58174974bc76c85e98e0474b;p=thirdparty%2Flibarchive.git Repair gcc11 build error in archive_read_support_format_warc.c Fixes #1462 --- diff --git a/libarchive/archive_read_support_format_warc.c b/libarchive/archive_read_support_format_warc.c index 25c651564..a582b81ad 100644 --- a/libarchive/archive_read_support_format_warc.c +++ b/libarchive/archive_read_support_format_warc.c @@ -127,7 +127,7 @@ static int _warc_skip(struct archive_read *a); static int _warc_rdhdr(struct archive_read *a, struct archive_entry *e); /* private routines */ -static unsigned int _warc_rdver(const char buf[10], size_t bsz); +static unsigned int _warc_rdver(const char *buf, size_t bsz); static unsigned int _warc_rdtyp(const char *buf, size_t bsz); static warc_string_t _warc_rduri(const char *buf, size_t bsz); static ssize_t _warc_rdlen(const char *buf, size_t bsz);