File squid3-3.0.STABLE1-snmp_strncat.patch of Package squid-beta

--- squid-3.0.STABLE1/src/snmp_core.cc.orig	2007-07-06 13:30:45.000000000 +0200
+++ squid-3.0.STABLE1/src/snmp_core.cc	2008-01-15 14:30:33.000000000 +0100
@@ -1106,7 +1106,7 @@ snmpDebugOid(int lvl, oid * Name, snint 
 
     for (x = 0; x < Len; x++) {
         snprintf(mbuf, sizeof(mbuf), ".%u", (unsigned int) Name[x]);
-        strncat(objid, mbuf, sizeof(objid));
+        strncat(objid, mbuf, sizeof(objid)-strlen(objid));
     }
 
     debugs(49, lvl, "   oid = " << objid);