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:
Scott McPeak 2021-04-23 03:31:54 -07:00 committed by Pauli
parent 9b53932b6f
commit 531df8185f
1 changed files with 4 additions and 3 deletions

View File

@ -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