From: wessels <> Date: Fri, 8 Nov 1996 03:24:47 +0000 (+0000) Subject: Fix memset() bug when -DPURIFY=1 X-Git-Tag: SQUID_3_0_PRE1~5504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d08f3863fdb38b9760b969e46f2e60c932082dc1;p=thirdparty%2Fsquid.git Fix memset() bug when -DPURIFY=1 --- diff --git a/src/acl.cc b/src/acl.cc index 90cac67082..aed8c58983 100644 --- a/src/acl.cc +++ b/src/acl.cc @@ -1,5 +1,5 @@ /* - * $Id: acl.cc,v 1.60 1996/11/06 23:14:18 wessels Exp $ + * $Id: acl.cc,v 1.61 1996/11/07 20:24:47 wessels Exp $ * * DEBUG: section 28 Access Control * AUTHOR: Duane Wessels @@ -274,9 +274,9 @@ aclParseIpList(void) q->mask.s_addr = 0; } else { p = t; - memset(addr1, 0, sizeof(addr1)); - memset(addr2, 0, sizeof(addr2)); - memset(mask, 0, sizeof(mask)); + memset(addr1, 0, 256); + memset(addr2, 0, 256); + memset(mask, 0, 256); /* Split the adress in addr1-addr2/mask */ strncpy(addr1, p, strcspn(p, "-/"));