ITS#2128, setvbuf is unreliable

This commit is contained in:
Howard Chu 2002-11-27 04:13:19 +00:00
parent e721e6bec9
commit 10a194feb5

View File

@ -55,6 +55,9 @@ int ber_pvt_vsnprintf( char *str, size_t n, const char *fmt, va_list ap )
fclose( f );
signal( SIGPIPE, sig );
if ( res > 0 && res < n ) {
res = vsprintf( str, fmt, ap );
}
return res;
}
#endif