From c44d8b51ffb5a413f8bbdbd9991bbc573853e397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henryk=20Pl=C3=B6tz?= Date: Fri, 3 Oct 2014 20:04:14 +0200 Subject: Apply patch djbdns-1.05-test27.diff.bz2 Source was http://www.fefe.de/dns/djbdns-1.05-test27.diff.bz2, SHA1 f0380ec1866f49c0bcf6369a923ac0a4a5095da8 --- qlog.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'qlog.c') diff --git a/qlog.c b/qlog.c index 5c5c7ba..60816df 100644 --- a/qlog.c +++ b/qlog.c @@ -20,15 +20,15 @@ static void octal(unsigned char c) put('0' + (c & 7)); } -void qlog(const char ip[4],uint16 port,const char id[2],const char *q,const char qtype[2],const char *result) +void qlog(const char ip[16],uint16 port,const char id[2],const char *q,const char qtype[2],const char *result) { char ch; char ch2; - hex(ip[0]); - hex(ip[1]); - hex(ip[2]); - hex(ip[3]); + { + int i; + for (i=0; i<16; ++i) hex(ip[i]); + } put(':'); hex(port >> 8); hex(port & 255); -- cgit v1.2.3