From 921ff55ce1bd070388770945da3359f9dd6f6fe3 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 8 May 2007 19:14:02 +0000 Subject: Sending a buffer full of garbage is not smart or funny. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6915 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_xmlsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_xmlsocket.cpp b/src/modules/m_xmlsocket.cpp index 8ffc9dc5b..9cb5b02cc 100644 --- a/src/modules/m_xmlsocket.cpp +++ b/src/modules/m_xmlsocket.cpp @@ -157,7 +157,7 @@ class ModuleXMLSocket : public Module /* We want to alter the buffer, so we have to make a copy */ char tmpbuffer[count+1]; - memcpy(&tmpbuffer, &buffer, count); + memcpy(tmpbuffer, buffer, count); /* XXX: This will actually generate lines "looking\0\0like\0\0this" * rather than lines "looking\0like\0this". This shouldnt be a problem -- cgit v1.2.3