]> git.sur5r.net Git - openldap/commitdiff
clarify the size of a generalizedTime
authorPierangelo Masarati <ando@openldap.org>
Mon, 19 May 2003 21:10:49 +0000 (21:10 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 19 May 2003 21:10:49 +0000 (21:10 +0000)
servers/slapd/schema_init.c

index 0cb230945db8ef303f08cd7975287a490ddafd0f..eccdd53bafe1ff7c861a6567b49b5087fecf7b23 100644 (file)
@@ -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;
        }