From: Wayne Davison Date: Thu, 12 Jul 2007 14:04:11 +0000 (+0000) Subject: Needed to use ndx_end in decrement_flist_in_progress(). X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/dbe287b701ca1cc2ad45120edf203f33ef1af991 Needed to use ndx_end in decrement_flist_in_progress(). --- diff --git a/io.c b/io.c index 0ab9f57b..d5f42cd0 100644 --- a/io.c +++ b/io.c @@ -445,13 +445,13 @@ static void decrement_flist_in_progress(int ndx, int redo) rprintf(FERROR, "Invalid file index: %d (%d - %d) [%s]\n", ndx, first_flist->ndx_start, - first_flist->prev->ndx_start + first_flist->prev->used - 1, + first_flist->prev->ndx_end, who_am_i()); exit_cleanup(RERR_PROTOCOL); } flist = flist->prev; } - while (ndx >= flist->ndx_start + flist->used) { + while (ndx > flist->ndx_end) { if (!(flist = flist->next)) goto invalid_ndx; }