]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Use ThisCache2 buffer size when filling ThisCache2 buffer (#1102)
authorRoie Rachamim <roierachamim@gmail.com>
Fri, 29 Jul 2022 23:16:33 +0000 (23:16 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Mon, 22 Aug 2022 15:09:12 +0000 (03:09 +1200)
src/cache_cf.cc

index cb746dc93c9a337dbfbe3c6cb8735ba83d1630a4..1bae8d3439ba13e206c520a957158835596e2198 100644 (file)
@@ -720,7 +720,7 @@ configDoConfigure(void)
      * the extra space is for loop detection in client_side.c -- we search
      * for substrings in the Via header.
      */
-    snprintf(ThisCache2, sizeof(ThisCache), " %s (%s)",
+    snprintf(ThisCache2, sizeof(ThisCache2), " %s (%s)",
              uniqueHostname(),
              visible_appname_string);