]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix the reference to the archive object 2734/head
authorTim Kientzle <kientzle@acm.org>
Sat, 13 Sep 2025 20:07:33 +0000 (13:07 -0700)
committerTim Kientzle <kientzle@acm.org>
Sat, 13 Sep 2025 20:07:33 +0000 (13:07 -0700)
libarchive/archive_write_add_filter_gzip.c

index 47081cc30bd1c753097808c173f4734122f08c1a..b09e669b753d34eb2599b254c18de06932375520 100644 (file)
@@ -263,7 +263,7 @@ archive_compressor_gzip_open(struct archive_write_filter *f)
                        data->stream.next_out += ofn_length + 1;
                        data->stream.avail_out -= ofn_length + 1;
                } else {
-                       archive_set_error(&a->archive, ENOMEM,
+                       archive_set_error(f->archive, ARCHIVE_ERRNO_MISC,
                                          "Gzip 'Original Filename' ignored because it is too long");
                        ret = ARCHIVE_WARN;
                }