From: Wouter Wijngaards Date: Tue, 7 Apr 2009 13:25:24 +0000 (+0000) Subject: and tabs display in TXT records is neat X-Git-Tag: release-1.6.0~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e4fbc3c8ccc3495d7cebbe60e399f2d3bc83ecd;p=thirdparty%2Fldns.git and tabs display in TXT records is neat --- diff --git a/host2str.c b/host2str.c index 4e2c6c5b..49b69329 100644 --- a/host2str.c +++ b/host2str.c @@ -344,7 +344,7 @@ ldns_rdf2buffer_str_str(ldns_buffer *output, const ldns_rdf *rdf) ldns_buffer_printf(output, "\""); for (i = 1; i <= length; ++i) { char ch = (char) data[i]; - if (isprint((int)ch)) { + if (isprint((int)ch) || ch=='\t') { if (ch == '"' || ch == '\\') { ldns_buffer_printf(output, "\\"); }