mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +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 );
|
fclose( f );
|
||||||
signal( SIGPIPE, sig );
|
signal( SIGPIPE, sig );
|
||||||
|
if ( res > 0 && res < n ) {
|
||||||
|
res = vsprintf( str, fmt, ap );
|
||||||
|
}
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user