X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f9c516202005d93005811c77eede7ee1f8267f61..e92338c82deba1576d23f22e11d95b0b34432e08:/flist.c 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;