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, 19 Oct 2014 20:09:53 +0000 (21:09 +0100)
commitc3a165f5e0c576df7bfa0febcdac973ecd23dea7
tree58337d95476451e99bc083ba7d1cf577b742943e
parent5806b74528bbe1d70e5e1795224b1c6ecd8c4341
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