diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-11 19:50:41 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-11 19:50:41 +0000 |
commit | 5378da4085f70f660af233c9e4cd6ce204bea5bb (patch) | |
tree | f53808cd3e222209aaaa4f4e660baf1074ebc8b5 | |
parent | d80241b974ba75934fa1aba5103e9ba6d10cfa0d (diff) |
Grr.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5934 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/extra/m_ziplink.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/extra/m_ziplink.cpp b/src/modules/extra/m_ziplink.cpp index 06ad20d35..1166bc60a 100644 --- a/src/modules/extra/m_ziplink.cpp +++ b/src/modules/extra/m_ziplink.cpp @@ -131,12 +131,11 @@ class CountedBuffer : public classbase SI->Log(DEBUG,"Removing first frame from buffer sized %d", amount_expected); unsigned char* temp = buffer; - bufsz -= (amount_expected + 4); buffer = new unsigned char[bufsz + 1]; SI->Log(DEBUG,"Shrunk buffer to %d", bufsz); - memcpy(buffer, temp + amount_expected + 4, bufsz); + memcpy(buffer, temp + amount_expected, bufsz - amount_expected); amount_read -= (amount_expected + 4); SI->Log(DEBUG,"Amount read now %d", amount_read); |