chiark / gitweb /
zone.lisp: Escape DEL in TinyDNS output.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 22 Dec 2014 22:20:37 +0000 (22:20 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 22 Dec 2014 22:22:41 +0000 (22:22 +0000)
zone.lisp

index 53800f0..3aa25ba 100644 (file)
--- a/zone.lisp
+++ b/zone.lisp
@@ -1322,7 +1322,7 @@ (defmethod zone-write-raw-rrdata ((format (eql :tinydns)) zr type data)
                    (dotimes (i (length data))
                      (let ((byte (aref data i)))
                        (if (or (<= byte 32)
-                               (>= byte 128)
+                               (>= byte 127)
                                (member byte '(#\: #\\) :key #'char-code))
                            (format out "\\~3,'0O" byte)
                            (write-char (code-char byte) out)))))