]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
fix --threads commandline 1567/head
authorRussell Greene <russellgreene8@gmail.com>
Wed, 25 Aug 2021 17:26:48 +0000 (13:26 -0400)
committerRussell Greene <russellgreene8@gmail.com>
Wed, 25 Aug 2021 17:26:48 +0000 (13:26 -0400)
libarchive/archive_write_add_filter_zstd.c

index 116e9fab7af674dcb38985447395a72e750d89e3..41e4c520e13612a7f67fd05f10c2d46e70766f52 100644 (file)
@@ -387,7 +387,7 @@ archive_compressor_zstd_open(struct archive_write_filter *f)
        if (data->threads != 0) {
                struct archive_string as2;
                archive_string_init(&as2);
-               archive_string_sprintf(&as, " --threads=%d", data->threads);
+               archive_string_sprintf(&as2, " --threads=%d", data->threads);
                archive_string_concat(&as, &as2);
                archive_string_free(&as2);
        }