]> git.sur5r.net Git - openldap/commitdiff
Support both vsnprintf and vsprintf
authorKurt Zeilenga <kurt@openldap.org>
Mon, 28 Jun 1999 22:04:31 +0000 (22:04 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 28 Jun 1999 22:04:31 +0000 (22:04 +0000)
libraries/liblutil/debug.c

index a46cba150cd916f6c2b404ce95905d0715fef5be..ddb30ed96b9b50298dbaa8b558f1546658c9ae97 100644 (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 ) {