]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix wrong string length in testHttpReply.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 21 Dec 2012 09:24:24 +0000 (10:24 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Fri, 21 Dec 2012 09:24:24 +0000 (10:24 +0100)
Detected by Coverity Scan. Issue 740413

src/tests/testHttpReply.cc

index 73133cf6970165a27c1b1f521239f621c3bbcba8..9f731ec4c8e9d83f690c7455e25aad77fdb6f44a 100644 (file)
@@ -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);