From: Henrik Nordstrom Date: Fri, 24 Jul 2009 15:52:18 +0000 (+0200) Subject: Fix Via string when leak checking is enabled (valgrind etc) X-Git-Tag: SQUID_3_2_0_1~849 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88331887562903f3d65a21b0acda7d71dbe87f4e;p=thirdparty%2Fsquid.git Fix Via string when leak checking is enabled (valgrind etc) --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index b5f620b06b..7c85cde299 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1403,7 +1403,7 @@ clientReplyContext::buildReplyHeader() LOCAL_ARRAY(char, bbuf, MAX_URL + 32); String strVia; hdr->getList(HDR_VIA, &strVia); - snprintf(bbuf, sizeof(bbuf), "%d.%d %s", + snprintf(bbuf, MAX_URL + 32, "%d.%d %s", reply->sline.version.major, reply->sline.version.minor, ThisCache);