From: Pierangelo Masarati Date: Mon, 19 May 2003 21:10:49 +0000 (+0000) Subject: clarify the size of a generalizedTime X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~106 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=074f54f300caf3d5c02a4c33cd9d6a01f8cc4ce7;p=openldap clarify the size of a generalizedTime --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index 0cb230945d..eccdd53baf 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -2155,7 +2155,7 @@ generalizedTimeNormalize( return rc; } - normalized->bv_val = sl_malloc( 16, ctx ); + normalized->bv_val = sl_malloc( sizeof("YYYYmmddHHMMSSZ"), ctx ); if ( normalized->bv_val == NULL ) { return LBER_ERROR_MEMORY; }