From 1fe082d16cadfca14447c3b70b6e207559b00630 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Mon, 28 Jun 1999 22:04:31 +0000 Subject: [PATCH] Support both vsnprintf and vsprintf --- libraries/liblutil/debug.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ) { -- 2.39.5