Support both vsnprintf and vsprintf

This commit is contained in:
Kurt Zeilenga 1999-06-28 22:04:31 +00:00
parent 048547a652
commit 1fe082d16c

View file

@ -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 ) {