]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
fix format string error when printing RAR5 VERSION field 1193/head
authorRolf Eike Beer <eike@sf-mail.de>
Sun, 5 May 2019 12:45:12 +0000 (14:45 +0200)
committerRolf Eike Beer <eike@sf-mail.de>
Mon, 6 May 2019 16:34:09 +0000 (18:34 +0200)
Fixes: 4a94ef4eee112224ae19e05651caad28c7f04751
libarchive/archive_read_support_format_rar5.c

index 0830ded46c0cb734a19177607e05cc23ab411fb0..87a8c611d89c5155b9e8f07a6bd00597ca6c0228 100644 (file)
@@ -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);