]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
info_iponline, libipt_ACCOUNT: (tomj) fixed ONLINE-IPS list, fixed onlinetime
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 11 May 2004 19:27:21 +0000 (19:27 +0000)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 11 May 2004 19:27:21 +0000 (19:27 +0000)
iptaccount/iptaccount.c

index f8cc97f76c2de23648087c0fdda3a6061ad889b4..5c413b85f1ba20de89b5922577a890293673231c 100644 (file)
@@ -36,6 +36,7 @@ char *addr_to_dotted(unsigned int addr)
 
     bytep = (const unsigned char *) &addr;
     snprintf(buf, 16, "%u.%u.%u.%u", bytep[0], bytep[1], bytep[2], bytep[3]);
+    buf[16] = 0;
     return buf;
 }