From fddeb40d086bc2af03a05b0f5f2285b72d38a01a Mon Sep 17 00:00:00 2001 From: Francesco Chemolli Date: Tue, 1 Jan 2013 17:20:10 -0700 Subject: [PATCH] Fix wrong string length in testHttpReply. Detected by Coverity Scan. Issue 740413 --- src/tests/testHttpReply.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2