From: Mark Wooding Date: Sat, 24 May 2014 13:00:03 +0000 (+0100) Subject: src/addrfam.c (adns_addr2text): Don't print junk in debugging output. X-Git-Tag: make-bug.2014-07-26~29 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/commitdiff_plain/eca4e30a85d4b680d2cfd95bd7eff3719b2fbb46?hp=eca4e30a85d4b680d2cfd95bd7eff3719b2fbb46 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 ---