From: Francesco Chemolli Date: Fri, 21 Dec 2012 09:24:24 +0000 (+0100) Subject: Fix wrong string length in testHttpReply. X-Git-Tag: SQUID_3_4_0_1~429 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d82a234ddfd84feb8d88f4b551a68e887afaac36;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 73133cf697..9f731ec4c8 100644 --- a/src/tests/testHttpReply.cc +++ b/src/tests/testHttpReply.cc @@ -82,7 +82,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);