summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2008-05-14 02:13:05 +0000
committerpixel <pixel>2008-05-14 02:13:05 +0000
commit073ef91d7b0554bbebbde4394094f27c2792541d (patch)
treec65c896bf6926032fb046ecf4c946acadfe49c5f
parenta353ed440fd79c719ed325b6359a9f72a3ef6cea (diff)
Using default compression level for deflate algorithm
-rw-r--r--lib/Handle.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc
index 479c055..c8e6abc 100644
--- a/lib/Handle.cc
+++ b/lib/Handle.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Handle.cc,v 1.82 2008-05-13 06:59:10 pixel Exp $ */
+/* $Id: Handle.cc,v 1.83 2008-05-14 02:13:05 pixel Exp $ */
#include <stdio.h>
#include <string.h>
@@ -780,7 +780,7 @@ int Handle::zlib_deflate(Handle * in, Handle * out) throw (GeneralException) {
have = total_out = 0;
- ret = deflateInit(&s, 9);
+ ret = deflateInit(&s, Z_DEFAULT_COMPRESSION);
if (ret != Z_OK ) {
throw GeneralException("zlib: deflateInit() failed: " + String(ret));
}