]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
lint
authorMiek Gieben <miekg@NLnetLabs.nl>
Mon, 2 Jan 2006 13:03:27 +0000 (13:03 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Mon, 2 Jan 2006 13:03:27 +0000 (13:03 +0000)
rr.c

diff --git a/rr.c b/rr.c
index 0b85d88f5bd9102ca0141ad10f7d3a4ad7011558..84a44f27afcde3e1e315cd2551abb87b698620d5 100644 (file)
--- a/rr.c
+++ b/rr.c
@@ -365,7 +365,7 @@ ldns_rr_new_frm_str(const char *str, uint16_t default_ttl, ldns_rdf *origin, ldn
                                                        /* can have spaces, and will always be the last 
                                                         * record of the rrdata. Read in the rest */
                                                        if ((c = ldns_bget_token(rd_buf, b64, "\n", LDNS_MAX_RDFLEN)) != -1) {
-                                                               sprintf(rd, "%s%s", rd, b64);
+                                                               snprintf(rd, LDNS_MAX_RDFLEN, "%s%s", rd, b64);
                                                        }
                                                        r = ldns_rdf_new_frm_str(
                                                                        ldns_rr_descriptor_field_type(desc, r_cnt),