]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
One more xmalloc typecast for --enable-x-accelerator-vary
authorhno <>
Mon, 14 Oct 2002 14:47:47 +0000 (14:47 +0000)
committerhno <>
Mon, 14 Oct 2002 14:47:47 +0000 (14:47 +0000)
src/http.cc

index 68a1b747abd17f59c15f9eaead750f8cd51bf8ad..2add70387404ce2d76476f6135bbdef9788f5e84 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http.cc,v 1.397 2002/10/14 08:16:58 robertc Exp $
+ * $Id: http.cc,v 1.398 2002/10/14 08:47:47 hno Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -367,7 +367,7 @@ httpMakeVaryMark(request_t * request, HttpReply * reply)
 #if X_ACCELERATOR_VARY
     vary = httpHeaderGetList(&reply->header, HDR_X_ACCELERATOR_VARY);
     while (strListGetItem(&vary, ',', &item, &ilen, &pos)) {
-       char *name = xmalloc(ilen + 1);
+       char *name = (char *)xmalloc(ilen + 1);
        xstrncpy(name, item, ilen + 1);
        Tolower(name);
        strListAdd(&vstr, name, ',');