From b382c1db95ac0b4147e0cff60f5da69901535c40 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 6 Nov 2017 04:01:31 +0900 Subject: [PATCH] SocketsTest: Fix printing of non-nul-terminated string Change-Id: I33d0ddf851d84b81ab5252e3755422170cee54ee Fixes: Coverity CID#149363 --- CommonLibs/SocketsTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CommonLibs/SocketsTest.cpp b/CommonLibs/SocketsTest.cpp index c2849e04..3198a5e1 100644 --- a/CommonLibs/SocketsTest.cpp +++ b/CommonLibs/SocketsTest.cpp @@ -61,7 +61,8 @@ void *testReaderUnix(void *) readSocket.nonblocking(); int rc = 0; while (rc0) { COUT("read: " << buf);