From fc2936d5006b4bd5fc84c1fce503c5046a767379 Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 1 Nov 2006 08:55:49 +0000 Subject: [PATCH] bugfix for internal index entry generation git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2889 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/index/indexURLEntry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/de/anomic/index/indexURLEntry.java b/source/de/anomic/index/indexURLEntry.java index d0ad2158e..4a6b1411e 100644 --- a/source/de/anomic/index/indexURLEntry.java +++ b/source/de/anomic/index/indexURLEntry.java @@ -142,8 +142,8 @@ public class indexURLEntry implements Cloneable, indexEntry { public byte[] toEncodedByteArrayForm(boolean includeHash) { if (includeHash) return entry.bytes(); - byte[] b = new byte[urlEntryRow.objectsize() - indexURL.urlLanguageLength]; - System.arraycopy(entry.bytes(), indexURL.urlLanguageLength, b, 0, b.length); + byte[] b = new byte[urlEntryRow.objectsize() - indexURL.urlHashLength]; + System.arraycopy(entry.bytes(), indexURL.urlHashLength, b, 0, b.length); return b; }