From d21637f58d9e5c011aa7b206eb3b82aef7c56735 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Sun, 5 May 2019 14:45:12 +0200 Subject: [PATCH] fix format string error when printing RAR5 VERSION field Fixes: 4a94ef4eee112224ae19e05651caad28c7f04751 --- libarchive/archive_read_support_format_rar5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2