diff -bur squid-3.0-PRE3-20040302-ori/src/pconn.cc squid-3.0-PRE3-20040302/src/pconn.cc --- squid-3.0-PRE3-20040302-ori/src/pconn.cc Sat Aug 16 07:04:34 2003 +++ squid-3.0-PRE3-20040302/src/pconn.cc Thu Mar 11 17:32:23 2004 @@ -262,7 +262,7 @@ } assert(table != NULL); - strncpy(key, pconnKey(host, port, domain), SQUIDHOSTNAMELEN + 10); + xstrncpy(key, pconnKey(host, port, domain), SQUIDHOSTNAMELEN + 10); p = (struct _pconn *) hash_lookup(table, key); @@ -310,7 +310,7 @@ int fd = -1; LOCAL_ARRAY(char, key, SQUIDHOSTNAMELEN + 10); assert(table != NULL); - strncpy(key, pconnKey(host, port, domain), SQUIDHOSTNAMELEN + 10); + xstrncpy(key, pconnKey(host, port, domain), SQUIDHOSTNAMELEN + 10); hptr = (hash_link *)hash_lookup(table, key); if (hptr != NULL) {