Skip to content
Snippets Groups Projects
Commit 1fe082d1 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Support both vsnprintf and vsprintf

parent 048547a6
No related branches found
No related tags found
No related merge requests found
......@@ -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 ) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment