X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblber%2Fbprint.c;h=0535603b0c39df3cb37cb59e2a7c38b526e5c7ae;hb=1702d408bfc09716ed0fbd42ef8c6bd11c51fd3a;hp=23ebf88853e05261216084530eb2f2a0e4ebdffd;hpb=709ce4fa6c0a8aea66c4b6e15bf42aa3352ad2e2;p=openldap diff --git a/libraries/liblber/bprint.c b/libraries/liblber/bprint.c index 23ebf88853..0535603b0c 100644 --- a/libraries/liblber/bprint.c +++ b/libraries/liblber/bprint.c @@ -87,15 +87,8 @@ int ber_pvt_log_output( { int level; ber_get_option( NULL, LBER_OPT_BER_DEBUG, &level ); -#ifdef HAVE_VSNPRINTF buf[sizeof(buf) - 1] = '\0'; vsnprintf( buf, sizeof(buf)-1, fmt, vl ); -#elif HAVE_VSPRINTF - vsprintf( buf, fmt, vl ); /* hope it's not too long */ -#else - /* use doprnt() */ -#error "vsprintf() required."; -#endif if ( ber_log_check( LDAP_DEBUG_BER, level ) ) (*ber_pvt_log_print)( buf ); } @@ -117,15 +110,8 @@ int ber_pvt_log_printf( int errlvl, int loglvl, const char *fmt, ... ) va_start( ap, fmt ); -#ifdef HAVE_VSNPRINTF buf[sizeof(buf) - 1] = '\0'; vsnprintf( buf, sizeof(buf)-1, fmt, ap ); -#elif HAVE_VSPRINTF - vsprintf( buf, fmt, ap ); /* hope it's not too long */ -#else - /* use doprnt() */ -#error "vsprintf() required." -#endif va_end(ap);