summaryrefslogtreecommitdiffstats
path: root/kioslave/pop3/pop3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kioslave/pop3/pop3.cc')
-rw-r--r--kioslave/pop3/pop3.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/kioslave/pop3/pop3.cc b/kioslave/pop3/pop3.cc
index 0ab27f63b..fe91a0747 100644
--- a/kioslave/pop3/pop3.cc
+++ b/kioslave/pop3/pop3.cc
@@ -164,7 +164,7 @@ ssize_t POP3Protocol::myRead(void *data, ssize_t len)
memcpy(data, readBuffer, copyLen);
readBufferLen -= copyLen;
if (readBufferLen)
- memcpy(readBuffer, &readBuffer[copyLen], readBufferLen);
+ memmove(readBuffer, &readBuffer[copyLen], readBufferLen);
return copyLen;
}
waitForResponse(600);
@@ -183,7 +183,7 @@ ssize_t POP3Protocol::myReadLine(char *data, ssize_t len)
data[copyLen] = '\0';
readBufferLen -= copyLen;
if (readBufferLen)
- memcpy(readBuffer, &readBuffer[copyLen], readBufferLen);
+ memmove(readBuffer, &readBuffer[copyLen], readBufferLen);
return copyLen;
}
waitForResponse(600);