summaryrefslogtreecommitdiff
path: root/src/connectionhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connectionhandler.cpp')
-rw-r--r--src/connectionhandler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/connectionhandler.cpp b/src/connectionhandler.cpp
index 6099280f..5f09e9c7 100644
--- a/src/connectionhandler.cpp
+++ b/src/connectionhandler.cpp
@@ -31,6 +31,11 @@
#define MAX_CLIENTS 1024
+ClientData::ClientData():
+ inp(0)
+{
+}
+
ConnectionHandler::ConnectionHandler()
{
}
@@ -106,6 +111,8 @@ void ConnectionHandler::startListen(ListenThreadData *ltd)
}
else
{
+ // Copy the incoming data to the in buffer of this
+ // client
buffer[result] = 0;
logger->log("Received %s", buffer);
#ifdef SCRIPT_SUPPORT