X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4fd842f98df4970f6e49a0365dbed60774e56c09..8e41b68e8f975c02a5d9281be780ba5d1a385107:/hlink.c diff --git a/hlink.c b/hlink.c index 785a8827..e9e76cdb 100644 --- a/hlink.c +++ b/hlink.c @@ -7,8 +7,9 @@ * Copyright (C) 2004-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 @@ -259,10 +260,10 @@ void match_hard_links(void) int i, ndx_count = 0; int32 *ndx_list; - if (!(ndx_list = new_array(int32, cur_flist->count))) + if (!(ndx_list = new_array(int32, cur_flist->used))) out_of_memory("match_hard_links"); - for (i = 0; i < cur_flist->count; i++) { + for (i = 0; i < cur_flist->used; i++) { if (F_IS_HLINKED(cur_flist->sorted[i])) ndx_list[ndx_count++] = i; }