]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Typo in rev.12477
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 18 Nov 2012 11:15:03 +0000 (04:15 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 18 Nov 2012 11:15:03 +0000 (04:15 -0700)
src/tools.cc

index 27d3773da7e3ebe04b8c03684b4b1d6a374d7df0..806891025bae890c3c8263520560660332d0c02a 100644 (file)
@@ -1177,7 +1177,7 @@ parseEtcHosts(void)
                 /* I know it's ugly, but it's only at reconfig */
                 strncpy(buf2, lt, sizeof(buf2)-1);
                 strncat(buf2, Config.appendDomain, sizeof(buf2) - strlen(lt) - 1);
-                buf1[sizeof(buf2)-1] = '\0';
+                buf2[sizeof(buf2)-1] = '\0';
                 host = buf2;
             } else {
                 host = lt;