mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-17 01:28:35 -05:00
ITS#2128, setvbuf is unreliable
This commit is contained in:
parent
e721e6bec9
commit
10a194feb5
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue