From: wessels <> Date: Tue, 26 May 1998 21:25:30 +0000 (+0000) Subject: Henrik PUT/POST fix X-Git-Tag: SQUID_3_0_PRE1~3261 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=419590f3ff5c0e836c14669541387fca4d934e0e;p=thirdparty%2Fsquid.git Henrik PUT/POST fix --- diff --git a/src/client.cc b/src/client.cc index 2fb08dc042..1a8c03de57 100644 --- a/src/client.cc +++ b/src/client.cc @@ -1,7 +1,7 @@ /* - * $Id: client.cc,v 1.68 1998/05/22 23:43:59 wessels Exp $ + * $Id: client.cc,v 1.69 1998/05/26 15:25:30 wessels Exp $ * * DEBUG: section 0 WWW Client * AUTHOR: Harvest Derived @@ -345,8 +345,8 @@ main(int argc, char *argv[]) if (put_file) { int x; lseek(put_fd, 0, SEEK_SET); - while ((x = read(put_fd, msg, BUFSIZ)) > 0) { - x = write(conn, msg, x); + while ((x = read(put_fd, buf, sizeof(buf))) > 0) { + x = write(conn, buf, x); total_bytes += x; if (x <= 0) break;