From 34d3eed4627bbb30ff77c92e2c055c3e5836de77 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 5 Jan 1999 01:57:13 +0000 Subject: [PATCH] fixed a bug in the adjacent target optimisation --- match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/match.c b/match.c index 38e8aa01..c231c2ac 100644 --- a/match.c +++ b/match.c @@ -199,7 +199,7 @@ static void hash_search(int f,struct sum_struct *s, /* we've found a match, but now check to see if last_i can hint at a better match */ for (j++; jcount && targets[j].t == t; j++) { - int i2 = targets[j].t; + int i2 = targets[j].i; if (i2 == last_i + 1) { if (sum != s->sums[i2].sum1) break; if (memcmp(sum2,s->sums[i2].sum2,csum_length) != 0) break; -- 2.34.1