]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
RAR5 reader: use %zu to sprintf() size_t
authorMartin Matuska <martin@matuska.org>
Mon, 10 Feb 2020 13:26:17 +0000 (14:26 +0100)
committerMartin Matuska <martin@matuska.org>
Mon, 10 Feb 2020 13:26:17 +0000 (14:26 +0100)
libarchive/archive_read_support_format_rar5.c

index 71ffe615ebc2f74dbc31680fcc79501634fe0497..82729bdcdb3c7335fbcf00a57ba620035e923607 100644 (file)
@@ -2134,7 +2134,7 @@ static int process_base_block(struct archive_read* a,
                hdr_size < SMALLEST_RAR5_BLOCK_SIZE)
        {
                archive_set_error(&a->archive, ARCHIVE_ERRNO_FILE_FORMAT,
-                   "Too small block encountered (%ld bytes)",
+                   "Too small block encountered (%zu bytes)",
                    raw_hdr_size);
 
                return ARCHIVE_FATAL;