From: Amos Jeffries Date: Sun, 18 Nov 2012 11:15:03 +0000 (-0700) Subject: Typo in rev.12477 X-Git-Tag: SQUID_3_4_0_1~483 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50e746f332f0e8d01aaec44cd9a86a1f6e788fe0;p=thirdparty%2Fsquid.git Typo in rev.12477 --- diff --git a/src/tools.cc b/src/tools.cc index 27d3773da7..806891025b 100644 --- a/src/tools.cc +++ b/src/tools.cc @@ -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;