X509_cmp_time: only return 1, 0, -1.
[openssl.git] / crypto / buffer / buffer.h
index a05cee091f9595b2a52513f1540e0d93d736b2b7..efd240a5f91e25360aab3d83b5aa01509bb29f00 100644 (file)
@@ -88,8 +88,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);