From: Amos Jeffries Date: Sun, 26 Jul 2009 11:01:41 +0000 (+1200) Subject: Author: Henrik Nordstrom X-Git-Tag: SQUID_3_0_STABLE17~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfbdbd02ca3e918267f47da3e77a2f3ad1cadc44;p=thirdparty%2Fsquid.git Author: Henrik Nordstrom 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 895dac03df..bfb1eb8431 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -1293,7 +1293,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);