]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Improve str_append_n() comment
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sat, 21 Apr 2018 13:10:03 +0000 (16:10 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 30 Aug 2018 08:13:33 +0000 (11:13 +0300)
src/lib/str.h

index c295b19384506d4a35ebc594da0b527a759d8f7c..cf7f296a573ac9ea7d4facd2f1fba3850edfc1a9 100644 (file)
@@ -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)