diff options
author | Henryk Plötz <henryk@ploetzli.ch> | 2014-10-03 20:04:14 +0200 |
---|---|---|
committer | Henryk Plötz <henryk@ploetzli.ch> | 2014-10-03 20:04:14 +0200 |
commit | c44d8b51ffb5a413f8bbdbd9991bbc573853e397 (patch) | |
tree | e7f2e644de620879f610c909c405cbc4e44d6062 /qlog.c | |
parent | 0e5b2871ca6456b01d4bf037a6e68badf1ff1a41 (diff) | |
download | tinydnssec-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.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); |