]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
strCat was allocating one byte too many.
authorhno <>
Sun, 17 Feb 2002 08:08:13 +0000 (08:08 +0000)
committerhno <>
Sun, 17 Feb 2002 08:08:13 +0000 (08:08 +0000)
src/protos.h

index 6dc57a63891acc0e1f8f0f4a112e865e151b3133..af754984dc9023473e25be532ea0c8e6774eae94 100644 (file)
@@ -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);