From 628ba800e4e9876051955fdeb5fb05f5eab502c8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 15 Dec 1997 18:01:15 +0000 Subject: [PATCH] bugfix from Kenji Miyake this fixes a off by 1 error that could cause rsync to crash when used with --delete --- flist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1