bugfix from Kenji Miyake <kenjim@fix.co.jp>

this fixes a off by 1 error that could cause rsync to crash when used
with --delete
This commit is contained in:
Andrew Tridgell
1997-12-15 18:01:15 +00:00
parent ce2ac5ac3f
commit 628ba800e4

View File

@@ -558,7 +558,7 @@ int file_compare(struct file_struct *f1,struct file_struct *f2)
int flist_find(struct file_list *flist,struct file_struct *f)
{
int low=0,high=flist->count;
int low=0,high=flist->count-1;
while (low != high) {
int mid = (low+high)/2;