X-Git-Url: http://developer.intra2net.com/git/?p=libipt_ACCOUNT;a=blobdiff_plain;f=iptaccount%2Fiptaccount.c;fp=iptaccount%2Fiptaccount.c;h=5c413b85f1ba20de89b5922577a890293673231c;hp=f8cc97f76c2de23648087c0fdda3a6061ad889b4;hb=c2cd6bded929a6fa18597b03d15ac73347d6bc6d;hpb=6a4a14ebf16a59a1aa60006c34b4b4b7bac2be4f 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; }