mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 12:39:35 -05:00
Support both vsnprintf and vsprintf
This commit is contained in:
parent
048547a652
commit
1fe082d16c
1 changed files with 4 additions and 0 deletions
|
|
@ -57,7 +57,11 @@ void (lutil_debug)( int level, int debug, const char *fmt, ... )
|
|||
|
||||
va_start( vl, fmt );
|
||||
|
||||
#ifdef HAVE_VSNPRINTF
|
||||
vsnprintf( buffer, sizeof(buffer), fmt, vl );
|
||||
#else
|
||||
vsprintf( buffer, fmt, vl );
|
||||
#endif
|
||||
buffer[sizeof(buffer)-1] = '\0';
|
||||
|
||||
if( log_file != NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue