]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix #829: doc of sldns_wire2str_rdata_buf() return value has an
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Sep 2016 07:14:56 +0000 (07:14 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 5 Sep 2016 07:14:56 +0000 (07:14 +0000)
  off-by-one typo, from Jinmei Tatuya (Infoblox).

git-svn-id: file:///svn/unbound/trunk@3847 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
sldns/wire2str.h

index 46224de10deed412f0c6a48bda120fa363913776..1b329969f5cf9dbbd3c3326fd0e26c9981cb656e 100644 (file)
@@ -1,3 +1,7 @@
+5 September 2016: Wouter
+       - Fix #829: doc of sldns_wire2str_rdata_buf() return value has an
+         off-by-one typo, from Jinmei Tatuya (Infoblox).
+
 2 September 2016: Wouter
        - Fix compile with openssl 1.1.0 with api=1.1.0.
 
index 67f543566267414757894ddb02547bf51d8ef00c..c477f06610d8318aa40cedb8cfa7e89fb2feb50d 100644 (file)
@@ -118,7 +118,7 @@ int sldns_str_print(char** str, size_t* slen, const char* format, ...)
  * @param str_len: the size of the string buffer.  If more is needed, it'll
  *     silently truncate the output to fit in the buffer.
  * @return the number of characters for this element, excluding zerobyte.
- *     Is larger than str_len if output was truncated.
+ *     Is larger or equal than str_len if output was truncated.
  */
 int sldns_wire2str_pkt_buf(uint8_t* data, size_t data_len, char* str,
        size_t str_len);
@@ -351,7 +351,7 @@ int sldns_wire2str_edns_option_code_print(char** str, size_t* str_len,
  * @param str_len: the size of the string buffer.  If more is needed, it'll
  *     silently truncate the output to fit in the buffer.
  * @return the number of characters for this element, excluding zerobyte.
- *     Is larger than str_len if output was truncated.
+ *     Is larger or equal than str_len if output was truncated.
  */
 int sldns_wire2str_rr_buf(uint8_t* rr, size_t rr_len, char* str,
        size_t str_len);
@@ -369,7 +369,7 @@ int sldns_wire2str_rr_buf(uint8_t* rr, size_t rr_len, char* str,
  * @param str_len: the size of the string buffer.  If more is needed, it'll
  *     silently truncate the output to fit in the buffer.
  * @return the number of characters for this element, excluding zerobyte.
- *     Is larger than str_len if output was truncated.
+ *     Is larger or equal than str_len if output was truncated.
  */
 int sldns_wire2str_rr_unknown_buf(uint8_t* rr, size_t rr_len, char* str,
        size_t str_len);
@@ -389,7 +389,7 @@ int sldns_wire2str_rr_unknown_buf(uint8_t* rr, size_t rr_len, char* str,
  * @param str_len: the size of the string buffer.  If more is needed, it'll
  *     silently truncate the output to fit in the buffer.
  * @return the number of characters for this element, excluding zerobyte.
- *     Is larger than str_len if output was truncated.
+ *     Is larger or equal than str_len if output was truncated.
  */
 int sldns_wire2str_rr_comment_buf(uint8_t* rr, size_t rr_len, size_t dname_len,
        char* str, size_t str_len);
@@ -406,7 +406,7 @@ int sldns_wire2str_rr_comment_buf(uint8_t* rr, size_t rr_len, size_t dname_len,
  *     silently truncate the output to fit in the buffer.
  * @param rrtype: rr type of the data
  * @return the number of characters for this element, excluding zerobyte.
- *     Is larger than str_len if output was truncated.
+ *     Is larger or equal than str_len if output was truncated.
  */
 int sldns_wire2str_rdata_buf(uint8_t* rdata, size_t rdata_len, char* str,
        size_t str_len, uint16_t rrtype);
@@ -417,7 +417,7 @@ int sldns_wire2str_rdata_buf(uint8_t* rdata, size_t rdata_len, char* str,
  * @param str: the string to write to.
  * @param len: length of str.
  * @return the number of characters for this element, excluding zerobyte.
- *     Is larger than str_len if output was truncated.
+ *     Is larger or equal than str_len if output was truncated.
  */
 int sldns_wire2str_type_buf(uint16_t rrtype, char* str, size_t len);
 
@@ -427,7 +427,7 @@ int sldns_wire2str_type_buf(uint16_t rrtype, char* str, size_t len);
  * @param str: the string to write to.
  * @param len: length of str.
  * @return the number of characters for this element, excluding zerobyte.
- *     Is larger than str_len if output was truncated.
+ *     Is larger or equal than str_len if output was truncated.
  */
 int sldns_wire2str_class_buf(uint16_t rrclass, char* str, size_t len);
 
@@ -437,7 +437,7 @@ int sldns_wire2str_class_buf(uint16_t rrclass, char* str, size_t len);
  * @param str: the string to write to.
  * @param len: length of str.
  * @return the number of characters for this element, excluding zerobyte.
- *     Is larger than str_len if output was truncated.
+ *     Is larger or equal than str_len if output was truncated.
  */
 int sldns_wire2str_rcode_buf(int rcode, char* str, size_t len);
 
@@ -448,7 +448,7 @@ int sldns_wire2str_rcode_buf(int rcode, char* str, size_t len);
  * @param str: the string to write to.
  * @param len: length of string.
  * @return the number of characters for this element, excluding zerobyte.
- *     Is larger than str_len if output was truncated.
+ *     Is larger or equal than str_len if output was truncated.
  */
 int sldns_wire2str_dname_buf(uint8_t* dname, size_t dname_len, char* str,
        size_t len);