git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b695d08
)
the signed/unsigned change seems to have caused a logic bug on some
author
Andrew Tridgell
<tridge@samba.org>
Sun, 3 Feb 2002 01:38:39 +0000
(
01:38
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sun, 3 Feb 2002 01:38:39 +0000
(
01:38
+0000)
systems (only those without large file support perhaps?)
this fixes it
match.c
patch
|
blob
|
history
diff --git
a/match.c
b/match.c
index adc298e7d607c3b4a0766ef6a4ef8702d8be74d5..ee8e565ffd8c0b26d7378b732a041ad95418febe 100644
(file)
--- a/
match.c
+++ b/
match.c
@@
-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);
}