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:
parent
04a1773db3
commit
7a15b51ff1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user