]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix typos and missing cast
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Dec 2009 00:41:41 +0000 (13:41 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 3 Dec 2009 00:41:41 +0000 (13:41 +1300)
src/HttpHeader.cc

index f6a91b9de1ed406c414191efcea3d31852bce175..3d14125fb878ca8ff3ffb54886adff63932bb1f0 100644 (file)
@@ -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;