From 58d14672473e97c6031ff3eab61ff2e2af0bc15d Mon Sep 17 00:00:00 2001 From: aw4y Date: Sat, 18 Jun 2016 13:36:16 +0100 Subject: [PATCH] bugfix --- .../rehacktive/waspdb/internals/collision/KryoStoreUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waspdb/src/main/java/net/rehacktive/waspdb/internals/collision/KryoStoreUtils.java b/waspdb/src/main/java/net/rehacktive/waspdb/internals/collision/KryoStoreUtils.java index 96a8ec8..80add35 100755 --- a/waspdb/src/main/java/net/rehacktive/waspdb/internals/collision/KryoStoreUtils.java +++ b/waspdb/src/main/java/net/rehacktive/waspdb/internals/collision/KryoStoreUtils.java @@ -90,7 +90,7 @@ public static Object readFromDisk(String filename, Class type, CipherManager cip // serializer for keys public static byte[] serialize(Object o) { - byte[] ret = new byte[CollisionHash.MAXFILESIZE]; + byte[] ret = new byte[CollisionHash.MAXFILESIZE*2]; Output output = new Output(ret); getKryoInstance().writeObject(output, o); return output.toBytes();