]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
unportable initialization
authorwessels <>
Thu, 28 May 1998 11:12:42 +0000 (11:12 +0000)
committerwessels <>
Thu, 28 May 1998 11:12:42 +0000 (11:12 +0000)
src/HttpHeaderTools.cc

index 23db8abb66c1eae4ff54faab260dd1e60683cedb..a0c60611a70a5567f407a8501b7a992314da38dc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: HttpHeaderTools.cc,v 1.14 1998/05/27 22:51:42 rousskov Exp $
+ * $Id: HttpHeaderTools.cc,v 1.15 1998/05/28 05:12:42 wessels Exp $
  *
  * DEBUG: section 66    HTTP Header Tools
  * AUTHOR: Alex Rousskov
@@ -204,7 +204,10 @@ strListAdd(String * str, const char *item, char del)
 {
     assert(str && item);
     if (strLen(*str)) {
-       char buf[3] = { del, ' ', '\0' };
+       char buf[3];
+       buf[0] = del;
+       buf[1] = ' ';
+       buf[2] = '\0';
        stringAppend(str, buf, 2);
     }
     stringAppend(str, item, strlen(item));