From 99eb07e232a2735f0aaae9ec0083467fad0e2d6c Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 31 Jan 2018 11:34:59 +0100 Subject: [PATCH] tests: null-terminate buffer Initialize temporary buffer with 0 to make sure that it's null-terminated. Change-Id: Icdde701839e35d3131605ea5a11882af21c8939a Fixes: CID149362 --- tests/CommonLibs/SocketsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/CommonLibs/SocketsTest.cpp b/tests/CommonLibs/SocketsTest.cpp index c4e31d83..eb92e253 100644 --- a/tests/CommonLibs/SocketsTest.cpp +++ b/tests/CommonLibs/SocketsTest.cpp @@ -47,7 +47,7 @@ void *testReaderIP(void *param) readSocket->nonblocking(); int rc = 0; while (rcread(buf, MAX_UDP_LENGTH); if (count>0) { CERR("read: " << buf);