]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 26 Jul 2009 11:01:41 +0000 (23:01 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 26 Jul 2009 11:01:41 +0000 (23:01 +1200)
Fix Via string when leak checking is enabled (valgrind etc)

src/client_side_reply.cc

index 895dac03dfabb84144bff840515291536479c543..bfb1eb84311bbfb5a3190e6ffa61a40a2dae882e 100644 (file)
@@ -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);