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)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 13 Jun 2014 08:57:41 +0000 (09:57 +0100)
commiteca4e30a85d4b680d2cfd95bd7eff3719b2fbb46
tree7efff5038a0ffde6e82a850c3a065d94e0ab2fe5
parentb3209391cb7207697e4eb1097223dc224b9e260e
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