From: Randy Kunkee Date: Wed, 19 Jul 2000 01:40:05 +0000 (+0000) Subject: Fix MAXARGS boundary condition problem: slapd crashed if number of tokens X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2414 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=46ca9103b6c8dad8427a4b2321e1011179dc27cd;p=openldap Fix MAXARGS boundary condition problem: slapd crashed if number of tokens parsed == MAXARGS (only applicable if you have really large objectclasses). --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index e778c4ae63..6c12ae0aac 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -48,7 +48,7 @@ read_config( const char *fname ) FILE *fp; char *line, *savefname, *saveline; int cargc, savelineno; - char *cargv[MAXARGS]; + char *cargv[MAXARGS+1]; int lineno, i; #ifdef HAVE_TLS int rc;