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:
ce2ac5a
)
bugfix from Kenji Miyake <kenjim@fix.co.jp>
author
Andrew Tridgell
<tridge@samba.org>
Mon, 15 Dec 1997 18:01:15 +0000
(18:01 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Mon, 15 Dec 1997 18:01:15 +0000
(18:01 +0000)
this fixes a off by 1 error that could cause rsync to crash when used
with --delete
flist.c
patch
|
blob
|
history
diff --git
a/flist.c
b/flist.c
index 1ae8c3416a1986db36d8dd5b0c705f769c9d8343..6ef990c3f1f802907a7c53b4a10252aa236e460b 100644
(file)
--- 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;