From b4a3617a7678fb9f20a1b2f010214a8cf6773ca0 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 26 Nov 2005 23:58:48 +0000 Subject: Added stricter checking for listening sockets git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1964 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index abfd0d51d..67ff65c70 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -143,6 +143,7 @@ char* InspSocket::Read() int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0); if (n > 0) { + ibuf[n] = 0; return ibuf; } else -- cgit v1.2.3