Fixed a problem with build_hash_table() getting called too

often when overwriting a shorter file.
This commit is contained in:
Wayne Davison
2007-10-27 04:41:18 +00:00
parent e844a4a8a8
commit 5851ac2dfe

View File

@@ -171,7 +171,10 @@ static void hash_search(int f,struct sum_struct *s,
if (offset >= reset) {
sum_pos = build_hash_table(s, sum_pos);
reset = sum_pos * s->blength;
if (sum_pos == s->count)
reset = len;
else
reset = sum_pos * s->blength;
}
if (verbose > 4) {