aboutsummaryrefslogtreecommitdiffstats
path: root/libarchive/archive_write_add_filter_xz.c
diff options
context:
space:
mode:
Diffstat (limited to 'libarchive/archive_write_add_filter_xz.c')
-rw-r--r--libarchive/archive_write_add_filter_xz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libarchive/archive_write_add_filter_xz.c b/libarchive/archive_write_add_filter_xz.c
index 8c1ebb805b10..9dd2c30e5de7 100644
--- a/libarchive/archive_write_add_filter_xz.c
+++ b/libarchive/archive_write_add_filter_xz.c
@@ -382,8 +382,8 @@ archive_compressor_xz_options(struct archive_write_filter *f,
value[1] != '\0')
return (ARCHIVE_WARN);
data->compression_level = value[0] - '0';
- if (data->compression_level > 6)
- data->compression_level = 6;
+ if (data->compression_level > 9)
+ data->compression_level = 9;
return (ARCHIVE_OK);
} else if (strcmp(key, "threads") == 0) {
char *endptr;