]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Via string when leak checking is enabled (valgrind etc)
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 24 Jul 2009 15:52:18 +0000 (17:52 +0200)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Fri, 24 Jul 2009 15:52:18 +0000 (17:52 +0200)
src/client_side_reply.cc

index b5f620b06bccd2a0a853a359b64c466c15205e1b..7c85cde299b3d936fe9f4f06ac67148de3409703 100644 (file)
@@ -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);