From 46ca9103b6c8dad8427a4b2321e1011179dc27cd Mon Sep 17 00:00:00 2001 From: Randy Kunkee Date: Wed, 19 Jul 2000 01:40:05 +0000 Subject: [PATCH] Fix MAXARGS boundary condition problem: slapd crashed if number of tokens parsed == MAXARGS (only applicable if you have really large objectclasses). --- servers/slapd/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5