From d80241b974ba75934fa1aba5103e9ba6d10cfa0d Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 11 Dec 2006 19:44:57 +0000 Subject: More tweaks git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5933 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_ziplink.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/extra/m_ziplink.cpp b/src/modules/extra/m_ziplink.cpp index ebff5ebf0..06ad20d35 100644 --- a/src/modules/extra/m_ziplink.cpp +++ b/src/modules/extra/m_ziplink.cpp @@ -347,7 +347,8 @@ class ModuleZLib : public Module ServerInstance->Log(DEBUG,"Decompressed %d bytes, total_decomp=%d: '%s'", session->d_stream.total_out, total_decomp, buffer); - size = session->inbuf->GetFrame(compr, CHUNK); + if (total_decomp < count) + size = session->inbuf->GetFrame(compr, CHUNK); } buffer[total_decomp] = 0; -- cgit v1.2.3