summaryrefslogtreecommitdiff
path: root/source/kde/kdepimlibs/kdepimlibs-4.5.imap4.cpp.r1216162.diff
blob: 85a216dd9e2713bf7507845cacf44b7c874f4ca1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: branches/KDE/4.5/kdepimlibs/kioslave/imap4/imap4.cpp
===================================================================
--- branches/KDE/4.5/kdepimlibs/kioslave/imap4/imap4.cpp	(revision 1216161)
+++ branches/KDE/4.5/kdepimlibs/kioslave/imap4/imap4.cpp	(revision 1216162)
@@ -2577,7 +2577,7 @@
     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 (!isConnected()) return 0;