summaryrefslogtreecommitdiffstats
path: root/kioslaves
diff options
context:
space:
mode:
Diffstat (limited to 'kioslaves')
-rw-r--r--kioslaves/imap4/imap4.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/kioslaves/imap4/imap4.cc b/kioslaves/imap4/imap4.cc
index 05469be31..bf7e8ff1a 100644
--- a/kioslaves/imap4/imap4.cc
+++ b/kioslaves/imap4/imap4.cc
@@ -2658,7 +2658,7 @@ ssize_t IMAP4Protocol::myRead(void *data, ssize_t len)
ssize_t copyLen = (len < readBufferLen) ? len : readBufferLen;
memcpy(data, readBuffer, copyLen);
readBufferLen -= copyLen;
- if (readBufferLen) memcpy(readBuffer, &readBuffer[copyLen], readBufferLen);
+ if (readBufferLen) memmove(readBuffer, &readBuffer[copyLen], readBufferLen);
return copyLen;
}
if (!isConnectionValid()) return 0;