From bc8a0598555f6552a5c716a3a7f55b1e1aeb3c65 Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Wed, 6 Apr 2011 23:22:10 +0900 Subject: [PATCH] Fixes issue 10 --- src/main/java/org/xerial/snappy/Snappy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/xerial/snappy/Snappy.java b/src/main/java/org/xerial/snappy/Snappy.java index 9cc46be..0694f19 100755 --- a/src/main/java/org/xerial/snappy/Snappy.java +++ b/src/main/java/org/xerial/snappy/Snappy.java @@ -436,7 +436,7 @@ public class Snappy public static long[] uncompressLongArray(byte[] input, int offset, int length) throws SnappyException { int uncompressedLength = Snappy.uncompressedLength(input, offset, length); long[] result = new long[uncompressedLength / 8]; - int byteSize = SnappyNative.rawUncompress(input, length, length, result, 0); + int byteSize = SnappyNative.rawUncompress(input, offset, length, result, 0); return result; }