From: hno <> Date: Mon, 14 Oct 2002 14:47:47 +0000 (+0000) Subject: One more xmalloc typecast for --enable-x-accelerator-vary X-Git-Tag: SQUID_3_0_PRE1~661 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7058745bb00363fa5761b40f90f3121afce6b203;p=thirdparty%2Fsquid.git One more xmalloc typecast for --enable-x-accelerator-vary --- diff --git a/src/http.cc b/src/http.cc index 68a1b747ab..2add703874 100644 --- a/src/http.cc +++ b/src/http.cc @@ -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, ',');