diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libssl/src/doc/crypto/BUF_MEM_new.pod | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libssl/src/doc/crypto/BUF_MEM_new.pod b/src/lib/libssl/src/doc/crypto/BUF_MEM_new.pod index a83f46f896..2805755869 100644 --- a/src/lib/libssl/src/doc/crypto/BUF_MEM_new.pod +++ b/src/lib/libssl/src/doc/crypto/BUF_MEM_new.pod | |||
@@ -45,10 +45,12 @@ B<len>. Any data already in the buffer is preserved if it increases in | |||
45 | size. | 45 | size. |
46 | 46 | ||
47 | BUF_strdup() copies a null terminated string into a block of allocated memory | 47 | BUF_strdup() copies a null terminated string into a block of allocated memory |
48 | and returns a pointer to the allocated block. | 48 | and returns a pointer to the allocated block. Unlike the system strdup() |
49 | function, BUF_strdup() will accept a NULL argument and will return NULL in | ||
50 | that case. Its use in new programes is discouraged. | ||
49 | 51 | ||
50 | The memory allocated from BUF_strdup() should be freed up using the | 52 | The memory allocated from BUF_strdup() should be freed up using the |
51 | OPENSSL_free() function. | 53 | free() function. |
52 | 54 | ||
53 | =head1 RETURN VALUES | 55 | =head1 RETURN VALUES |
54 | 56 | ||