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: adns-1.5.0-rc0~83 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/adns/commitdiff_plain/c3a165f5e0c576df7bfa0febcdac973ecd23dea7?hp=c3a165f5e0c576df7bfa0febcdac973ecd23dea7 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 ---