summaryrefslogtreecommitdiff
blob: 464ec21e97806a0b280c52c28192eccbec12319d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- dclib/csearchindex.cpp.orig	2005-05-04 12:11:37.000000000 -0400
+++ dclib/csearchindex.cpp	2005-05-04 12:13:38.000000000 -0400
@@ -420,9 +420,12 @@
 	CBase32 base32;
 	CByteArray dst,src;
 	
-	if ( hbi < m_pHashIndex->Size() )
+	struct hashbaseobject * hbo;
+
+	if ( hbi < m_pHashBaseArray->Size() )
 	{
-		src.Append(m_pHashIndex->Data()+hbi,TIGERSIZE);
+		hbo = (struct hashbaseobject *)(m_pHashBaseArray->Data()+hbi);
+		src.Append(m_pHashIndex->Data()+hbo->m_nHashIndex,TIGERSIZE);
 		base32.Encode( &dst, &src );
 		if ( dst.Size() > 0 )
 		{