aboutsummaryrefslogtreecommitdiff
path: root/qlog.c
diff options
context:
space:
mode:
authorHenryk Plötz <henryk@ploetzli.ch>2014-10-03 20:04:14 +0200
committerHenryk Plötz <henryk@ploetzli.ch>2014-10-03 20:04:14 +0200
commitc44d8b51ffb5a413f8bbdbd9991bbc573853e397 (patch)
treee7f2e644de620879f610c909c405cbc4e44d6062 /qlog.c
parent0e5b2871ca6456b01d4bf037a6e68badf1ff1a41 (diff)
downloadtinydnssec-c44d8b51ffb5a413f8bbdbd9991bbc573853e397.tar.gz
tinydnssec-c44d8b51ffb5a413f8bbdbd9991bbc573853e397.tar.bz2
Apply patch djbdns-1.05-test27.diff.bz2
Source was http://www.fefe.de/dns/djbdns-1.05-test27.diff.bz2, SHA1 f0380ec1866f49c0bcf6369a923ac0a4a5095da8
Diffstat (limited to 'qlog.c')
-rw-r--r--qlog.c10
1 files changed, 5 insertions, 5 deletions
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);