From: Martin Matuska Date: Fri, 18 Feb 2022 23:38:53 +0000 (+0100) Subject: 7zip reader: style fixes after 3962d596d X-Git-Tag: v3.6.1~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72ce1ff7c6857a7334baa05884e69b9264a2199c;p=thirdparty%2Flibarchive.git 7zip reader: style fixes after 3962d596d --- diff --git a/libarchive/archive_read_support_format_7zip.c b/libarchive/archive_read_support_format_7zip.c index d41209c97..564ba514a 100644 --- a/libarchive/archive_read_support_format_7zip.c +++ b/libarchive/archive_read_support_format_7zip.c @@ -989,14 +989,17 @@ ppmd_read(void *p) if (zip->ppstream.avail_in <= 0) { /* - * Ppmd7_DecodeSymbol might require reading multiple bytes and we are on boundary; - * last resort to read using __archive_read_ahead. - */ + * Ppmd7_DecodeSymbol might require reading multiple bytes + * and we are on boundary; + * last resort to read using __archive_read_ahead. + */ ssize_t bytes_avail = 0; - const uint8_t* data = __archive_read_ahead(a, zip->ppstream.stream_in+1, &bytes_avail); + const uint8_t* data = __archive_read_ahead(a, + zip->ppstream.stream_in+1, &bytes_avail); if(bytes_avail < zip->ppstream.stream_in+1) { - archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT, - "Truncated 7z file data"); + archive_set_error(&a->archive, + ARCHIVE_ERRNO_FILE_FORMAT, + "Truncated 7z file data"); zip->ppstream.overconsumed = 1; return (0); }