From: wessels <> Date: Sat, 15 Aug 1998 00:02:49 +0000 (+0000) Subject: not copying enough bytes! X-Git-Tag: SQUID_3_0_PRE1~2899 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09885fa5be6d73d37ba921fc8bced9ae338c93c9;p=thirdparty%2Fsquid.git not copying enough bytes! --- diff --git a/src/pconn.cc b/src/pconn.cc index 2eeeae6d31..721fa6f49c 100644 --- a/src/pconn.cc +++ b/src/pconn.cc @@ -1,6 +1,6 @@ /* - * $Id: pconn.cc,v 1.22 1998/08/14 17:23:41 wessels Exp $ + * $Id: pconn.cc,v 1.23 1998/08/14 18:02:49 wessels Exp $ * * DEBUG: section 48 Persistent Connections * AUTHOR: Duane Wessels @@ -198,7 +198,7 @@ pconnPush(int fd, const char *host, u_short port) p->nfds_alloc <<= 1; old = p->fds; p->fds = xmalloc(p->nfds_alloc * sizeof(int)); - xmemcpy(p->fds, old, p->nfds); + xmemcpy(p->fds, old, p->nfds * sizeof(int)); xfree(old); } p->fds[p->nfds++] = fd;