X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib_internal%2Fmatchlist-appendfiles.c;h=688f593c88da63b7ebade111414bd309895999da;hb=be41237a12dad904d92e58373f670113bb730a24;hp=bf05ad7bb7d687dd5e0dca83cb9ddffc14ba5479;hpb=8017c61604996d3adcab25cc544427945c903373;p=util-vserver.git diff --git a/lib_internal/matchlist-appendfiles.c b/lib_internal/matchlist-appendfiles.c index bf05ad7..688f593 100644 --- a/lib_internal/matchlist-appendfiles.c +++ b/lib_internal/matchlist-appendfiles.c @@ -1,16 +1,16 @@ // $Id$ --*- c -*-- // Copyright (C) 2004 Enrico Scholz -// +// // 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 // the Free Software Foundation; version 2 of the License. -// +// // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -43,7 +43,7 @@ MatchList_appendFiles(struct MatchList *list, size_t idx, { struct MatchItem *ptr = list->data + idx; size_t i; - + assert(idx+count <= list->count); if (auto_type) {