* Copyright (C) 1996-2001 Andrew Tridgell <tridge@samba.org>
* Copyright (C) 1996 Paul Mackerras
* Copyright (C) 2002 Martin Pool
- * Copyright (C) 2003-2008 Wayne Davison
+ * Copyright (C) 2003-2009 Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
struct local_filter_state {
int mergelist_cnt;
- struct filter_list_struct mergelists[0];
+ struct filter_list_struct mergelists[1];
};
/* Each time rsync changes to a new directory it call this function to
push = (struct local_filter_state *)new_array(char,
sizeof (struct local_filter_state)
- + mergelist_cnt * sizeof (struct filter_list_struct));
+ + (mergelist_cnt-1) * sizeof (struct filter_list_struct));
if (!push)
out_of_memory("push_local_filters");