From: hno <> Date: Sun, 17 Feb 2002 08:08:13 +0000 (+0000) Subject: strCat was allocating one byte too many. X-Git-Tag: SQUID_3_0_PRE1~1183 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b2deb62a377f9683f06abc3dbd759c267a342f3;p=thirdparty%2Fsquid.git strCat was allocating one byte too many. --- diff --git a/src/protos.h b/src/protos.h index 6dc57a6389..af754984dc 100644 --- a/src/protos.h +++ b/src/protos.h @@ -1,6 +1,6 @@ /* - * $Id: protos.h,v 1.426 2002/02/17 00:38:22 hno Exp $ + * $Id: protos.h,v 1.427 2002/02/17 01:08:13 hno Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -1181,7 +1181,7 @@ extern void htcpSocketClose(void); #define strSet(s,ptr,ch) (s).buf[ptr-(s).buf] = (ch) #define strCut(s,pos) (((s).len = pos) , ((s).buf[pos] = '\0')) #define strCutPtr(s,ptr) (((s).len = (ptr)-(s).buf) , ((s).buf[(s).len] = '\0')) -#define strCat(s,str) stringAppend(&(s), (str), strlen(str)+1) +#define strCat(s,str) stringAppend(&(s), (str), strlen(str)) extern void stringInit(String * s, const char *str); extern void stringLimitInit(String * s, const char *str, int len); extern String stringDup(const String * s);