chiark / gitweb /
src/addrfam.c (adns_addr2text): Don't print junk in debugging output.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 24 May 2014 13:00:03 +0000 (14:00 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 12 Oct 2014 19:39:47 +0000 (20:39 +0100)
commit09d96df2bba590305e08703e232fd8bf780b199f
tree58337d95476451e99bc083ba7d1cf577b742943e
parent6c5ce29f1b7e82b0c5b9a832d1d23f560fd979f4
src/addrfam.c (adns_addr2text): Don't print junk in debugging output.

At the point we print `adns_addr2text: will print scoped addr ...' the
buffer isn't null-terminated.  Fortunately, we have the length of the
valid portion of the buffer, so use that to print only the good piece.

Signed-off-by: Mark Wooding <mdw@distorted.org.uk>
src/addrfam.c