From: Francesco Chemolli Date: Wed, 2 Jan 2013 00:20:10 +0000 (-0700) Subject: Fix wrong string length in testHttpReply. X-Git-Tag: SQUID_3_3_0_3~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fddeb40d086bc2af03a05b0f5f2285b72d38a01a;p=thirdparty%2Fsquid.git Fix wrong string length in testHttpReply. Detected by Coverity Scan. Issue 740413 --- diff --git a/src/tests/testHttpReply.cc b/src/tests/testHttpReply.cc index e393898de8..db529c155b 100644 --- a/src/tests/testHttpReply.cc +++ b/src/tests/testHttpReply.cc @@ -88,7 +88,7 @@ testHttpReply::testSanityCheckFirstLine() #endif // valid ICY protocol status line - input.append("ICY 200 Okay\n\n", 18); + input.append("ICY 200 Okay\n\n", 14); hdr_len = headersEnd(input.content(),input.contentSize()); CPPUNIT_ASSERT( engine.sanityCheckStartLine(&input, hdr_len, &error) ); CPPUNIT_ASSERT_EQUAL(error, HTTP_STATUS_NONE);