X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/9decb4d2ef51599425f12a68dbeba2b4f3a2d908..d108e04f38ac0b376b6ac2af46a430b9b6dc988d:/io.c diff --git a/io.c b/io.c index be19b2c5..d5f42cd0 100644 --- a/io.c +++ b/io.c @@ -7,8 +7,9 @@ * Copyright (C) 2003-2007 Wayne Davison * * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -444,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; }