Fix MAXARGS boundary condition problem: slapd crashed if number of tokens

parsed == MAXARGS (only applicable if you have really large objectclasses).
This commit is contained in:
Randy Kunkee 2000-07-19 01:40:05 +00:00
parent 836d089e74
commit 46ca9103b6

View File

@ -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;