From: wessels <> Date: Sun, 4 Jan 1998 13:57:27 +0000 (+0000) Subject: Fix memmove() arg bug. should be conn->in.offset, not in.size X-Git-Tag: SQUID_3_0_PRE1~4266 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a21f5057f37a6f2097fc7ee5154064623050f4ac;p=thirdparty%2Fsquid.git Fix memmove() arg bug. should be conn->in.offset, not in.size --- diff --git a/src/client_side.cc b/src/client_side.cc index 519577454e..e3edd52bf2 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.188 1998/01/03 05:27:17 wessels Exp $ + * $Id: client_side.cc,v 1.189 1998/01/04 06:57:27 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1614,7 +1614,7 @@ clientReadRequest(int fd, void *data) * data to the beginning */ if (conn->in.offset > 0) - memmove(conn->in.buf, conn->in.buf + http->req_sz, conn->in.size); + memmove(conn->in.buf, conn->in.buf + http->req_sz, conn->in.offset); /* add to the client request queue */ for (H = &conn->chr; *H; H = &(*H)->next); *H = http;