mirror of
https://github.com/openssl/openssl.git
synced 2026-01-18 17:11:31 +01:00
BIO_printf.pod: Clarify that output is always null terminated.
The original text was ambiguous about termination for errors other than insufficient space. See issue #14772. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15000)
This commit is contained in:
@@ -40,9 +40,10 @@ buffer is too small.
|
||||
|
||||
=head1 NOTES
|
||||
|
||||
Except when I<n> is 0, both BIO_snprintf() and BIO_vsnprintf() terminate
|
||||
their output with C<'\0'> even when there is insufficient space to output
|
||||
the whole string.
|
||||
Except when I<n> is 0, both BIO_snprintf() and BIO_vsnprintf() always
|
||||
terminate their output with C<'\0'>. This includes cases where -1 is
|
||||
returned, such as when there is insufficient space to output the whole
|
||||
string.
|
||||
|
||||
=head1 COPYRIGHT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user