File kioslave-fix-memcpy.patch of Package kdebase3

From 0d32ceb004c4e9630bb85173cd6e885c76cecba7 Mon Sep 17 00:00:00 2001
From: Serghei Amelian <serghei.amelian@gmail.com>
Date: Tue, 2 Jul 2013 23:26:39 +0300
Subject: [PATCH] [kioslave/pop3] fixed an inapropriate use of memcpy(), which
 is causing various random problems (like endless loops)

---
 kioslave/pop3/pop3.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kioslave/pop3/pop3.cc b/kioslave/pop3/pop3.cc
index 06266d7..af64523 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);
-- 
1.8.1.6