summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-08 19:14:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-08 19:14:02 +0000
commit921ff55ce1bd070388770945da3359f9dd6f6fe3 (patch)
treedb1a9042c6461f6e3c498271d6dd60561d9a422d /src
parentac223dbc6c8df700251a06cf263e7b444deb8742 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_xmlsocket.cpp2
1 files changed, 1 insertions, 1 deletions
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