diff options
Diffstat (limited to 'src/modules/extra/m_ssl_gnutls.cpp')
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 0eb293d27..fb50c0f09 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -543,7 +543,7 @@ class ModuleSSLGnuTLS : public Module if(count <= length) { - memmove(buffer, session->inbuf, count); + memcpy(buffer, session->inbuf, count); // Move the stuff left in inbuf to the beginning of it memmove(session->inbuf, session->inbuf + count, (length - count)); // Now we need to set session->inbufoffset to the amount of data still waiting to be handed to insp. @@ -554,7 +554,7 @@ class ModuleSSLGnuTLS : public Module else { // There's not as much in the inbuf as there is space in the buffer, so just copy the whole thing. - memmove(buffer, session->inbuf, length); + memcpy(buffer, session->inbuf, length); // Zero the offset, as there's nothing there.. session->inbufoffset = 0; // As above |