Bugfix for setting version_needed in compression backends.
diff --git a/lib/zip_source_compress.c b/lib/zip_source_compress.c
index 8ba7cb5..1ca270f 100644
--- a/lib/zip_source_compress.c
+++ b/lib/zip_source_compress.c
@@ -374,7 +374,7 @@
 
         attributes->valid |= ZIP_FILE_ATTRIBUTES_VERSION_NEEDED |
         ZIP_FILE_ATTRIBUTES_GENERAL_PURPOSE_BIT_FLAGS;
-        attributes->version = ctx->algorithm->version_needed;
+        attributes->version_needed = ctx->algorithm->version_needed;
 	attributes->general_purpose_bit_mask = ZIP_FILE_ATTRIBUTES_GENERAL_PURPOSE_BIT_FLAGS_ALLOWED_MASK;
 	attributes->general_purpose_bit_flags = (ctx->is_stored ? 0 : ctx->algorithm->general_purpose_bit_flags(ctx->ud));
 
diff --git a/regress/gap-add.zip b/regress/gap-add.zip
index d70bfbd..e1a0159 100644
--- a/regress/gap-add.zip
+++ b/regress/gap-add.zip
Binary files differ
diff --git a/regress/gap-replace.zip b/regress/gap-replace.zip
index 610ca06..27e0580 100644
--- a/regress/gap-replace.zip
+++ b/regress/gap-replace.zip
Binary files differ
diff --git a/regress/utf-8-standardization-output.zip b/regress/utf-8-standardization-output.zip
index 2507a76..375489e 100644
--- a/regress/utf-8-standardization-output.zip
+++ b/regress/utf-8-standardization-output.zip
Binary files differ