From: Andrew Tridgell Date: Tue, 5 Jan 1999 01:57:13 +0000 (+0000) Subject: fixed a bug in the adjacent target optimisation X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/34d3eed4627bbb30ff77c92e2c055c3e5836de77?hp=923fa978088f4c044eec528d9472962d9c9d13c3 fixed a bug in the adjacent target optimisation --- 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;