From: Timo Sirainen Date: Sat, 21 Apr 2018 13:10:03 +0000 (+0300) Subject: lib: Improve str_append_n() comment X-Git-Tag: 2.3.4~252 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=228e04c2d111cb04773d52b54a0b19b29c68a228;p=thirdparty%2Fdovecot%2Fcore.git lib: Improve str_append_n() comment --- diff --git a/src/lib/str.h b/src/lib/str.h index c295b19384..cf7f296a57 100644 --- a/src/lib/str.h +++ b/src/lib/str.h @@ -26,7 +26,8 @@ static inline size_t str_len(const string_t *str) return str->used; } -/* Append string/character */ +/* Append NUL-terminated string. If the trailing NUL isn't found earlier, + append a maximum of max_len characters. */ void str_append_n(string_t *str, const void *cstr, size_t max_len); static inline void str_append(string_t *str, const char *cstr)