From 558d089c314c1d226af7a3a389df9191e4d0f95c Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 7 Feb 2019 11:00:06 +0700 Subject: Fix setting of buffer position --- crypto/src/util/zlib/Deflate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/util') diff --git a/crypto/src/util/zlib/Deflate.cs b/crypto/src/util/zlib/Deflate.cs index ca0430939..99878c01d 100644 --- a/crypto/src/util/zlib/Deflate.cs +++ b/crypto/src/util/zlib/Deflate.cs @@ -1384,7 +1384,7 @@ namespace Org.BouncyCastle.Utilities.Zlib { pending_buf = new byte[lit_bufsize*4]; pending_buf_size = lit_bufsize*4; - d_buf = lit_bufsize/2; + d_buf = lit_bufsize; l_buf = (1+2)*lit_bufsize; this.level = level; -- cgit 1.4.1