From 8c3205b62ed5b678011e15f9f480f254a17179c3 Mon Sep 17 00:00:00 2001
From: orbiter <orbiter@6c8d7289-2bf4-0310-a012-ef5d649a1542>
Date: Mon, 29 Dec 2008 17:36:53 +0000
Subject: [PATCH] fix for OOB Exception see
 http://forum.yacy-websuche.de/viewtopic.php?p=11598#p11598

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5417 6c8d7289-2bf4-0310-a012-ef5d649a1542
---
 source/de/anomic/kelondro/kelondroBLOBHeap.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/source/de/anomic/kelondro/kelondroBLOBHeap.java b/source/de/anomic/kelondro/kelondroBLOBHeap.java
index b07c0050b..d82293da4 100755
--- a/source/de/anomic/kelondro/kelondroBLOBHeap.java
+++ b/source/de/anomic/kelondro/kelondroBLOBHeap.java
@@ -260,7 +260,8 @@ public final class kelondroBLOBHeap implements kelondroBLOB {
         final int pos = (int) file.length();
         int posFile = pos;
         int posBuffer = 0;
-        byte[] ba = new byte[this.buffersize + (4 + this.index.row().primaryKeyLength) * this.buffer.size()];
+        
+        byte[] ba = new byte[l + (4 + this.index.row().primaryKeyLength) * this.buffer.size()];
         Map.Entry<String, byte[]> entry;
         byte[] key, blob, b;
         while (i.hasNext()) {