diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-11 20:05:50 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-11 20:05:50 +0000 |
commit | 98cdc4b7aafff7137d07da3006fead78e7a9fd39 (patch) | |
tree | 3f5455bf9edb9408824a7d60b84f3199672532d1 /src | |
parent | f83c5f620382dd6d415ce613e3cec9f92f693f70 (diff) |
This should do it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5936 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/m_ziplink.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/extra/m_ziplink.cpp b/src/modules/extra/m_ziplink.cpp index c2f197042..b755d7b40 100644 --- a/src/modules/extra/m_ziplink.cpp +++ b/src/modules/extra/m_ziplink.cpp @@ -100,6 +100,7 @@ class CountedBuffer : public classbase buffer.pop_front(); } + amount_expected = 0; NextFrameSize(); return j; @@ -297,14 +298,14 @@ class ModuleZLib : public Module total_decomp += session->d_stream.total_out; + buffer[total_decomp] = 0; + ServerInstance->Log(DEBUG,"Decompressed %d bytes, total_decomp=%d: '%s'", session->d_stream.total_out, total_decomp, buffer); if (total_decomp < count) size = session->inbuf->GetFrame(compr, CHUNK); } - buffer[total_decomp] = 0; - ServerInstance->Log(DEBUG,"Complete buffer: '%s' size=%d", buffer, total_decomp); } return (readresult > 0); |