diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-26 23:58:48 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-26 23:58:48 +0000 |
commit | b4a3617a7678fb9f20a1b2f010214a8cf6773ca0 (patch) | |
tree | 03ac467ea2f1d8fd5bc7dd606d39c598655a6a81 /src/socket.cpp | |
parent | 856391e5d8a9f562a08d2e7b6dbb0231ee961202 (diff) |
Added stricter checking for listening sockets
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1964 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r-- | src/socket.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 |