diff options
Diffstat (limited to 'src/connection.cpp')
-rw-r--r-- | src/connection.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/connection.cpp b/src/connection.cpp index 6073b0a4a..737e11b8c 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -260,6 +260,7 @@ bool connection::SendPacket(char *message, char* host) bool connection::RecvPacket(std::deque<std::string> &messages, char* host) { char data[32767]; + memset(data, 0, 32767); for (int i = 0; i < this->connectors.size(); i++) { // returns false if the packet could not be sent (e.g. target host down) |