From: Kurt Zeilenga Date: Mon, 28 Jun 1999 22:04:31 +0000 (+0000) Subject: Support both vsnprintf and vsprintf X-Git-Tag: OPENLDAP_REL_ENG_2_BP~235 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1fe082d16cadfca14447c3b70b6e207559b00630;p=openldap Support both vsnprintf and vsprintf --- diff --git a/libraries/liblutil/debug.c b/libraries/liblutil/debug.c index a46cba150c..ddb30ed96b 100644 --- a/libraries/liblutil/debug.c +++ b/libraries/liblutil/debug.c @@ -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 ) {