X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/ebb0a6f61826aeaba0aeb1866df41dee8b7c7269..a06d19e3fca289d07ba18c71f39124a0da1ddd4a:/match.c diff --git a/match.c b/match.c index e15f4401..a1775b27 100644 --- a/match.c +++ b/match.c @@ -221,12 +221,12 @@ static void hash_search(int f,struct sum_struct *s, /* Trim off the first byte from the checksum */ map = window_ptr(buf,offset,k+1); - s1 -= map[0] + 1; - s2 -= k * (map[0]+1); + s1 -= map[0] + CHAR_OFFSET; + s2 -= k * (map[0]+CHAR_OFFSET); /* Add on the next byte (if there is one) to the checksum */ if (k < (len-offset)) { - s1 += (map[k]+1); + s1 += (map[k]+CHAR_OFFSET); s2 += s1; } else { --k;