From: Andrew Tridgell Date: Mon, 15 Dec 1997 18:01:15 +0000 (+0000) Subject: bugfix from Kenji Miyake X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/628ba800e4e9876051955fdeb5fb05f5eab502c8 bugfix from Kenji Miyake this fixes a off by 1 error that could cause rsync to crash when used with --delete --- diff --git a/flist.c b/flist.c index 1ae8c341..6ef990c3 100644 --- a/flist.c +++ b/flist.c @@ -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;