1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Fix for gzip bug in WARC + zlib 1.2.4.

This commit is contained in:
Gijs van Tulder 2011-11-20 18:28:19 +01:00 committed by Giuseppe Scrivano
parent eed850d938
commit 1316701791
2 changed files with 6 additions and 1 deletions

View 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> 2011-11-04 Steven Schweda <address@hidden>
* warc.c [! WINDOWS]: Include <libgen.h>. * warc.c [! WINDOWS]: Include <libgen.h>.

View File

@ -169,7 +169,7 @@ warc_write_start_record ()
fflush (warc_current_file); fflush (warc_current_file);
/* Start a new GZIP stream. */ /* 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; warc_current_gzfile_uncompressed_size = 0;
if (warc_current_gzfile == NULL) if (warc_current_gzfile == NULL)