]> git.sur5r.net Git - openldap/commitdiff
Use bufsiz macros
authorKurt Zeilenga <kurt@openldap.org>
Sun, 1 Sep 2002 05:58:00 +0000 (05:58 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 1 Sep 2002 05:58:00 +0000 (05:58 +0000)
servers/slapd/tools/slapadd.c

index e993da5fa8fb9f35aab4c156f8a537dd1887114d..7e6470ca6f54a670d63d4eb5d679a92df356fb2c 100644 (file)
@@ -152,12 +152,12 @@ main( int argc, char **argv )
                if ( SLAP_LASTMOD(be) ) {
                        struct tm *ltm;
                        time_t now = slap_get_time();
-                       char uuidbuf[40];
-                       struct berval vals[2];
+                       char uuidbuf[ LDAP_LUTIL_UUIDSTR_BUFSIZE ];
+                       struct berval vals[ 2 ];
 
                        struct berval name, timestamp, csn;
-                       char timebuf[22];
-                       char csnbuf[64];
+                       char timebuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
+                       char csnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE ];
 
                        ltm = gmtime(&now);
                        lutil_gentime( timebuf, sizeof(timebuf), ltm );