diff options
Diffstat (limited to 'tdeioslaves')
-rw-r--r-- | tdeioslaves/imap4/imap4.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tdeioslaves/imap4/imap4.cc b/tdeioslaves/imap4/imap4.cc index cb0f06ad8..666bce9e5 100644 --- a/tdeioslaves/imap4/imap4.cc +++ b/tdeioslaves/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; |