From bf16dd59979ab5cd818ad16486e6a0b13ae2cf8f Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Fri, 26 May 2000 16:12:30 +0000 Subject: [PATCH] use dns_name_format() --- lib/dns/adb.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/dns/adb.c b/lib/dns/adb.c index 4214b527dc..b4135b328d 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -2989,17 +2989,11 @@ dns_adb_dumpfind(dns_adbfind_t *find, FILE *f) { static void print_dns_name(FILE *f, dns_name_t *name) { char buf[1024]; - isc_buffer_t b; - isc_region_t r; INSIST(f != NULL); - isc_buffer_init(&b, buf, sizeof(buf)); - - if (dns_name_totext(name, ISC_FALSE, &b) == ISC_R_SUCCESS) { - isc_buffer_usedregion(&b, &r); - fprintf(f, "%.*s", (int)r.length, r.base); - } + dns_name_format(name, buf, sizeof(buf)); + fprintf(f, "%s", buf); } static void