From: Thomas Jarosch Date: Tue, 11 May 2004 19:27:21 +0000 (+0000) Subject: info_iponline, libipt_ACCOUNT: (tomj) fixed ONLINE-IPS list, fixed onlinetime X-Git-Tag: v3.29~1^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2cd6bded929a6fa18597b03d15ac73347d6bc6d;p=thirdparty%2Fxtables-addons.git info_iponline, libipt_ACCOUNT: (tomj) fixed ONLINE-IPS list, fixed onlinetime --- diff --git a/iptaccount/iptaccount.c b/iptaccount/iptaccount.c index f8cc97f..5c413b8 100644 --- a/iptaccount/iptaccount.c +++ b/iptaccount/iptaccount.c @@ -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; }