From: Rolf Eike Beer Date: Sun, 5 May 2019 12:45:12 +0000 (+0200) Subject: fix format string error when printing RAR5 VERSION field X-Git-Tag: v3.4.0~47^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1193%2Fhead;p=thirdparty%2Flibarchive.git fix format string error when printing RAR5 VERSION field Fixes: 4a94ef4eee112224ae19e05651caad28c7f04751 --- diff --git a/libarchive/archive_read_support_format_rar5.c b/libarchive/archive_read_support_format_rar5.c index 0830ded46..87a8c611d 100644 --- a/libarchive/archive_read_support_format_rar5.c +++ b/libarchive/archive_read_support_format_rar5.c @@ -1277,7 +1277,7 @@ static int parse_file_extra_version(struct archive_read* a, /* Prepare a ;123 suffix for the filename, where '123' is the version * value of this file. */ - archive_string_sprintf(&version_string, ";%ld", version); + archive_string_sprintf(&version_string, ";%zu", version); /* Build the new filename. */ archive_strcat(&name_utf8_string, cur_filename);