diff options
author | Andrew Tridgell <tridge@samba.org> | 2002-02-03 01:38:39 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2002-02-03 01:38:39 +0000 |
commit | 0e9480317dbb5b8003535a769f4a03bc720d5f5f (patch) | |
tree | ed6c79ec5971d6c07a53b5e75b5ffca516f35f6a /match.c | |
parent | b695d088cfc64096516f2171e88f630dbc00c9b8 (diff) | |
download | rsync-0e9480317dbb5b8003535a769f4a03bc720d5f5f.tar.gz |
the signed/unsigned change seems to have caused a logic bug on some
systems (only those without large file support perhaps?)
this fixes it
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -246,7 +246,8 @@ static void hash_search(int f,struct sum_struct *s, match. The 3 reads are caused by the running match, the checksum update and the literal send. */ - if (offset-last_match >= CHUNK_SIZE+s->n && + if (offset > last_match && + offset-last_match >= CHUNK_SIZE+s->n && (end-offset > CHUNK_SIZE)) { matched(f,s,buf,offset - s->n, -2); } |