summaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-07-04 13:08:07 +0000
committerAndrew Tridgell <tridge@samba.org>1996-07-04 13:08:07 +0000
commit1b01b295c960fd6b9fb0c3fdb961010c22b2c898 (patch)
treeacc8c756418ab912b12de9add660c7dd30ba0c36 /match.c
parentebb0a6f61826aeaba0aeb1866df41dee8b7c7269 (diff)
downloadrsync-1b01b295c960fd6b9fb0c3fdb961010c22b2c898.tar.gz
rsync-1b01b295c960fd6b9fb0c3fdb961010c22b2c898.tar.bz2
rsync-1b01b295c960fd6b9fb0c3fdb961010c22b2c898.zip
added CHAR_OFFSET
Diffstat (limited to 'match.c')
-rw-r--r--match.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/match.c b/match.c
index e15f4401..5c78ce38 100644
--- a/match.c
+++ b/match.c
@@ -222,11 +222,11 @@ 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);
+ 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;