2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-23 10:39:16 +00:00

eliminated extra newline at end of RRs being logged

This commit is contained in:
Andreas Gustafsson 1999-10-29 00:25:54 +00:00
parent 04a1773db3
commit 7a15b51ff1

View File

@ -625,6 +625,10 @@ dns_diff_print(dns_diff_t *diff, FILE *file) {
result = dns_rdataset_totext(&rds, &t->name,
ISC_FALSE, ISC_FALSE, &buf);
/* Get rid of final newline. */
INSIST(buf.used >= 1 && ((char *) buf.base)[buf.used-1] == '\n');
buf.used--;
if (result == DNS_R_NOSPACE) {
isc_mem_put(diff->mctx, mem, size);
size += 1024;