Hi,

There is a small bug in the WARC methods. The function gzdopen () is called with 'wb+9'. The '+' is ignored by zlib 1.2.3.*, but it causes an error with zlib 1.2.4. The attached patch removes the '+'.

Thanks,

Gijs
=== modified file 'src/ChangeLog'
--- src/ChangeLog	2011-11-05 10:52:51 +0000
+++ src/ChangeLog	2011-11-09 13:10:05 +0000
@@ -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>.

=== modified file 'src/warc.c'
--- src/warc.c	2011-11-05 10:52:51 +0000
+++ src/warc.c	2011-11-09 13:07:18 +0000
@@ -169,7 +169,7 @@
       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)

Reply via email to