{
struct monitorentrypriv *mp;
struct tm *ltm;
- char buf[1024];
- char buf2[22];
- char buf3[22];
+ char buf[ 1024 ];
+ char buf2[ LDAP_LUTIL_GENTIME_BUFSIZE ];
+ char buf3[ LDAP_LUTIL_GENTIME_BUFSIZE ];
struct berval bv[2];
ldap_pvt_thread_mutex_lock( &gmtime_mutex );
ltm = gmtime( &c->c_starttime );
- lutil_gentime( buf2, sizeof(buf2), ltm );
+ lutil_gentime( buf2, sizeof( buf2 ), ltm );
ltm = gmtime( &c->c_activitytime );
- lutil_gentime( buf3, sizeof(buf2), ltm );
+ lutil_gentime( buf3, sizeof( buf3 ), ltm );
ldap_pvt_thread_mutex_unlock( &gmtime_mutex );
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
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;