mirror of
https://github.com/openssl/openssl.git
synced 2024-11-23 18:13:39 +08: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:
parent
9b53932b6f
commit
531df8185f
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user