From a43d828adc5504ffb7c8f5130a66d279bb0ed92d Mon Sep 17 00:00:00 2001 From: wessels <> Date: Sat, 4 Jul 1998 06:34:07 +0000 Subject: [PATCH] body_buf/body_size sync fix --- src/client_side.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/client_side.cc b/src/client_side.cc index 4d572b37fb..e22ed4f357 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.340 1998/07/04 00:17:15 wessels Exp $ + * $Id: client_side.cc,v 1.341 1998/07/04 00:34:07 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -1440,7 +1440,8 @@ clientSendMoreData(void *data, char *buf, ssize_t size) if (rep) { body_size = size - rep->hdr_sz; assert(body_size >= 0); - body_buf = buf + rep->hdr_sz; + if (body_size) + body_buf = buf + rep->hdr_sz; http->range_iter.prefix_size = rep->hdr_sz; debug(33, 3) ("clientSendMoreData: Appending %d bytes after %d bytes of headers\n", body_size, rep->hdr_sz); -- 2.47.3