From ad4a6d8a19b8926571b6c239fcab8825b81a7b52 Mon Sep 17 00:00:00 2001 From: dirk Date: Tue, 18 Jan 2022 17:30:19 +0100 Subject: [PATCH] bug fix size --- src/client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client.cpp b/src/client.cpp index ebaf9fe..9c3210f 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -71,6 +71,7 @@ void Client::receiveTask() { publishEvent(ClientEvent::DISCONNECTED, disconnectionMessage); return; } else { + receivedMessage[numOfBytesReceived] = '\0'; publishEvent(ClientEvent::INCOMING_MSG, receivedMessage); } }