]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
right +1 to +2.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Thu, 28 Feb 2008 12:43:43 +0000 (12:43 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Thu, 28 Feb 2008 12:43:43 +0000 (12:43 +0000)
dname.c

diff --git a/dname.c b/dname.c
index 5906564b55d690bc495c045eb67f2bbcc2311804..934136c22943a1e08764092baae0a6e6f5583810 100644 (file)
--- a/dname.c
+++ b/dname.c
@@ -431,8 +431,8 @@ ldns_dname_label(const ldns_rdf *rdf, uint8_t labelpos)
                        tmpnew->_type = LDNS_RDF_TYPE_DNAME;
                        tmpnew->_data = LDNS_XMALLOC(uint8_t, len + 2);
                        memset(tmpnew->_data, 0, len + 2);
-                       memcpy(tmpnew->_data, ldns_rdf_data(rdf) + src_pos, len + 2);
-                       tmpnew->_size = len + 1;
+                       memcpy(tmpnew->_data, ldns_rdf_data(rdf) + src_pos, len + 1);
+                       tmpnew->_size = len + 2;
                        return tmpnew;
                }
                src_pos++;