summary refs log tree commit diff
path: root/crypto/src/util/zlib/Deflate.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2019-02-07 11:00:06 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2019-02-07 11:00:06 +0700
commit558d089c314c1d226af7a3a389df9191e4d0f95c (patch)
tree44bc2ce5b2cbbe1bd247e3c409e12bbe36f4502f /crypto/src/util/zlib/Deflate.cs
parentfixed ECGOST co-factors for 2012 sets (diff)
downloadBouncyCastle.NET-ed25519-558d089c314c1d226af7a3a389df9191e4d0f95c.tar.xz
Fix setting of buffer position
Diffstat (limited to '')
-rw-r--r--crypto/src/util/zlib/Deflate.cs2
1 files changed, 1 insertions, 1 deletions
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;