diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-07-04 13:08:07 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-07-04 13:08:07 +0000 |
commit | 1b01b295c960fd6b9fb0c3fdb961010c22b2c898 (patch) | |
tree | acc8c756418ab912b12de9add660c7dd30ba0c36 /match.c | |
parent | ebb0a6f61826aeaba0aeb1866df41dee8b7c7269 (diff) | |
download | rsync-1b01b295c960fd6b9fb0c3fdb961010c22b2c898.tar.gz rsync-1b01b295c960fd6b9fb0c3fdb961010c22b2c898.tar.bz2 rsync-1b01b295c960fd6b9fb0c3fdb961010c22b2c898.zip |
added CHAR_OFFSET
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |