diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-11 19:44:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-11 19:44:57 +0000 |
commit | d80241b974ba75934fa1aba5103e9ba6d10cfa0d (patch) | |
tree | 48cde287ad97f73e98fac5623cf17c4ca0851ecf /src/modules | |
parent | 15a937209d63498643a197b9b5361c0538a6df60 (diff) |
More tweaks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5933 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_ziplink.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |