]> sjero.net Git - wget/commitdiff
Fix for gzip bug in WARC + zlib 1.2.4.
authorGijs van Tulder <gvtulder@gmail.com>
Sun, 20 Nov 2011 17:28:19 +0000 (18:28 +0100)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Sun, 20 Nov 2011 17:28:19 +0000 (18:28 +0100)
src/ChangeLog
src/warc.c

index 001d39096d986b985c38cafd1a7f7c2564f6e252..8db453b0120b4c2858fcc5c3fdc9a0d6ce2c368f 100644 (file)
@@ -1,3 +1,8 @@
+2011-11-09  Gijs van Tulder  <address@hidden>
+
+       * warc.c: Call gzdopen() with wb9 instead of wb+9, which fails on
+       zlib version >= 1.2.4.
+
 2011-11-04  Steven Schweda  <address@hidden>
 
        * warc.c [! WINDOWS]: Include <libgen.h>.
index 33488c4effc4c9e0c73d209a4557a15a1728d06b..680ac99775dd717605adc0c7c0fbaa5958242b34 100644 (file)
@@ -169,7 +169,7 @@ warc_write_start_record ()
       fflush (warc_current_file);
 
       /* Start a new GZIP stream. */
-      warc_current_gzfile = gzdopen (dup (fileno (warc_current_file)), "wb+9");
+      warc_current_gzfile = gzdopen (dup (fileno (warc_current_file)), "wb9");
       warc_current_gzfile_uncompressed_size = 0;
 
       if (warc_current_gzfile == NULL)