mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
ITS#2128, setvbuf is unreliable
This commit is contained in:
parent
e721e6bec9
commit
10a194feb5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user