commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1540349 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyDecompressor.java
Date Sat, 09 Nov 2013 17:55:59 GMT
Author: bodewig
Date: Sat Nov  9 17:55:59 2013
New Revision: 1540349

URL: http://svn.apache.org/r1540349
Log:
wrong index in flush when not using the default block size

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyDecompressor.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyDecompressor.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyDecompressor.java?rev=1540349&r1=1540348&r2=1540349&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyDecompressor.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/compressors/snappy/SnappyDecompressor.java
Sat Nov  9 17:55:59 2013
@@ -264,7 +264,7 @@ public class SnappyDecompressor {
     private void flushDecompressBuffer(final OutputStream os)
             throws IOException {
         os.write(decompressBuf, 0, this.blockSize);
-        System.arraycopy(decompressBuf, BLOCK_SIZE, decompressBuf, 0,
+        System.arraycopy(decompressBuf, blockSize, decompressBuf, 0,
                 this.blockSize);
         decompressBufIndex -= this.blockSize;
     }



Mime
View raw message