--------------------- PatchSet 5273 Date: 2007/08/12 04:57:38 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Fix NtoA where some displays may produce garbage. Members: lib/IPAddress.cc:1.1.2.61->1.1.2.62 Index: squid3/lib/IPAddress.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/lib/Attic/IPAddress.cc,v retrieving revision 1.1.2.61 retrieving revision 1.1.2.62 diff -u -r1.1.2.61 -r1.1.2.62 --- squid3/lib/IPAddress.cc 12 Aug 2007 04:14:36 -0000 1.1.2.61 +++ squid3/lib/IPAddress.cc 12 Aug 2007 04:57:38 -0000 1.1.2.62 @@ -1,6 +1,6 @@ /* - * $Id: IPAddress.cc,v 1.1.2.61 2007/08/12 04:14:36 amosjeffries Exp $ + * $Id: IPAddress.cc,v 1.1.2.62 2007/08/12 04:57:38 amosjeffries Exp $ * * DEBUG: section 14 IP Storage and Handling * AUTHOR: Amos Jeffries @@ -972,9 +972,9 @@ /* thats okay, our default is known */ if( IsAnyAddr() ) { #if USE_IPV6 - memcpy(buf,"::",3); + memcpy(buf,"::\0",3); #else - memcpy(buf,"0.0.0.0",8); + memcpy(buf,"0.0.0.0\0",8); #endif return buf; }