]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Escape spaces in printed domain names.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 7 Apr 2009 13:10:17 +0000 (13:10 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Tue, 7 Apr 2009 13:10:17 +0000 (13:10 +0000)
host2str.c

index caef5de9b21ceba82d6459beacd208d4167bddaf..4e2c6c5b537fe2d8d695c00316cbc414fa1c045d 100644 (file)
@@ -251,8 +251,7 @@ ldns_rdf2buffer_str_dname(ldns_buffer *output, const ldns_rdf *dname)
                                    data[src_pos] == '(' || data[src_pos] == ')') {
                                        ldns_buffer_printf(output, "\\%c", 
                                                        data[src_pos]);
-                                       /* isprint!? */
-                               } else if (!isprint((int) data[src_pos])) {
+                               } else if (!isgraph((int) data[src_pos])) {
                                        ldns_buffer_printf(output, "\\%03u", 
                                                        data[src_pos]);
                                } else {