]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-monitor/time.c
Plug memory leak
[openldap] / servers / slapd / back-monitor / time.c
index 7a950b593431d1e8d34fe6bf68b087c69c56b79c..abc29e366a4624101b3a67fac7de97ee81a08638 100644 (file)
@@ -59,7 +59,7 @@ monitor_subsys_time_init(
        struct monitorentrypriv *mp;
        char                    buf[1024];
        struct tm               *tms;
-       char                    tmbuf[20];
+       char                    tmbuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
 
        /*
         * Note: ltmbuf, ltm are used only if HACK_LOCAL_TIME is defined
@@ -220,7 +220,8 @@ monitor_subsys_time_update(
        Entry                   *e
 )
 {
-       char            stmbuf[20], ctmbuf[20];
+       char            stmbuf[ LDAP_LUTIL_GENTIME_BUFSIZE ],
+                       ctmbuf[ LDAP_LUTIL_GENTIME_BUFSIZE ];
        struct tm       *stm, *ctm;
        Attribute       *a;
        ber_len_t       len;