]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix wrong string length in testHttpReply.
authorFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 2 Jan 2013 00:20:10 +0000 (17:20 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 2 Jan 2013 00:20:10 +0000 (17:20 -0700)
  Detected by Coverity Scan. Issue 740413

src/tests/testHttpReply.cc

index e393898de86059294c0add26a1b8cf9d2fa6358c..db529c155b36c74b94f4c8b2ece12f5c036dde94 100644 (file)
@@ -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);