aboutsummaryrefslogtreecommitdiff
path: root/qlog.c
diff options
context:
space:
mode:
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);