From: Amos Jeffries Date: Thu, 3 Dec 2009 00:41:41 +0000 (+1300) Subject: Fix typos and missing cast X-Git-Tag: SQUID_3_2_0_1~520 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d8633ea2bbe012913ba10496da32e8e6787cc37;p=thirdparty%2Fsquid.git Fix typos and missing cast --- diff --git a/src/HttpHeader.cc b/src/HttpHeader.cc index f6a91b9de1..3d14125fb8 100644 --- a/src/HttpHeader.cc +++ b/src/HttpHeader.cc @@ -515,7 +515,7 @@ HttpHeader::parse(const char *header_start, const char *header_end) HttpHeaderStats[owner].parsedCount++; char *nulpos; - if (nulpos = memchr(header_start, '\0', header_end - header_start)) { + if ((nulpos = (char*)memchr(header_start, '\0', header_end - header_start))) { debugs(55, 1, "WARNING: HTTP header contains NULL characters {" << getStringPrefix(header_start, nulpos) << "}\nNULL\n{" << getStringPrefix(nulpos+1, header_end)); goto reset;