]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
larger minimal bufsize
authorJelte Jansen <jelte@NLnetLabs.nl>
Wed, 29 Oct 2008 10:13:44 +0000 (10:13 +0000)
committerJelte Jansen <jelte@NLnetLabs.nl>
Wed, 29 Oct 2008 10:13:44 +0000 (10:13 +0000)
host2str.c
ldns/buffer.h

index ada90e0e3d0e9a4ac04f36c2d709723ccf3aeaac..f7ec7cbf9fa3cab059f5dae2f7f147b530daee59 100644 (file)
@@ -368,7 +368,7 @@ ldns_rdf2buffer_str_b64(ldns_buffer *output, const ldns_rdf *rdf)
        }
        LDNS_FREE(b64);
        return ldns_buffer_status(output);
-}      
+}
 
 ldns_status
 ldns_rdf2buffer_str_b32_ext(ldns_buffer *output, const ldns_rdf *rdf)
@@ -1059,7 +1059,6 @@ ldns_rr2buffer_str(ldns_buffer *output, const ldns_rr *rr)
 {
        uint16_t i, flags;
        ldns_status status = LDNS_STATUS_OK;
-
        if (!rr) {
                ldns_buffer_printf(output, "(null)\n");
        } else {
@@ -1091,7 +1090,7 @@ ldns_rr2buffer_str(ldns_buffer *output, const ldns_rr *rr)
                        status = ldns_rdf2buffer_str(output, ldns_rr_rdf(rr, i));
                        if (i < ldns_rr_rd_count(rr) - 1) {
                                ldns_buffer_printf(output, " ");
-                       } 
+                       }
                }
                /* per RR special comments - handy for DNSSEC types */
                /* check to prevent question sec. rr from
@@ -1712,7 +1711,6 @@ ldns_rr2str(const ldns_rr *rr)
                /* export and return string, destroy rest */
                result = ldns_buffer2str(tmp_buffer);
        }
-       
        ldns_buffer_free(tmp_buffer);
        return result;
 }
index acae1290569aea060903d4606e326bf2e3a3898b..4e5f9feb65d857556716d24b583d196da05ec671 100644 (file)
@@ -26,7 +26,7 @@
  * number of initial bytes in buffer of
  * which we cannot tell the size before hand
  */
-#define LDNS_MIN_BUFLEN        256
+#define LDNS_MIN_BUFLEN        512
 
 /**
  * \file buffer.h