diff options
author | Emilia Kasper <emilia@openssl.org> | 2015-09-17 13:27:05 +0200 |
---|---|---|
committer | Emilia Kasper <emilia@openssl.org> | 2015-09-22 19:51:18 +0200 |
commit | de8883e11befde31d9b6cfbbd1fc017c365e0bbf (patch) | |
tree | dcd4acac52c104a9f78d0e584167acd4b08aab4b /include/openssl/buffer.h | |
parent | 110f7b37de9feecfb64950601cc7cec77cf6130b (diff) | |
download | openssl-de8883e11befde31d9b6cfbbd1fc017c365e0bbf.tar.gz |
BUF_strndup: tidy
Fix comment, add another overflow check, tidy style
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'include/openssl/buffer.h')
-rw-r--r-- | include/openssl/buffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/openssl/buffer.h b/include/openssl/buffer.h index 61cff9ca36..f22ed09713 100644 --- a/include/openssl/buffer.h +++ b/include/openssl/buffer.h @@ -92,8 +92,8 @@ size_t BUF_strnlen(const char *str, size_t maxlen); char *BUF_strdup(const char *str); /* - * Returns a pointer to a new string which is a duplicate of the string |str|, - * but guarantees to never read past the first |siz| bytes of |str|. + * Like strndup, but in addition, explicitly guarantees to never read past the + * first |siz| bytes of |str|. */ char *BUF_strndup(const char *str, size_t siz); |