/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 2003-2008 The OpenLDAP Foundation.
+ * Copyright 2003-2009 The OpenLDAP Foundation.
* Portions Copyright 2003 Howard Chu.
* All rights reserved.
*
struct collect_info *ci_next;
struct berval ci_dn;
int ci_ad_num;
- AttributeDescription *ci_ad[];
+ AttributeDescription *ci_ad[1];
} collect_info;
/*
/* allocate config info with room for attribute array */
ci = ch_malloc( sizeof( collect_info ) +
- ( sizeof (AttributeDescription *) * (count + 1)));
+ sizeof( AttributeDescription * ) * count );
/* validate and normalize dn */
ber_str2bv( c->argv[1], 0, 0, &bv );