make bcopy use memmove
authorHolger Lubitz <hal@duncan.ol.sub.de>
Sun, 29 Jul 2007 15:35:38 +0000 (17:35 +0200)
committerHolger Lubitz <hal@duncan.ol.sub.de>
Sun, 29 Jul 2007 15:35:38 +0000 (17:35 +0200)
src/core/string.c

index 040a778..12d05d5 100644 (file)
@@ -424,12 +424,7 @@ void * memset(void * s,int c,size_t count)
  */
 char * bcopy(const char * src, char * dest, int count)
 {
-       char *tmp = dest;
-
-       while (count--)
-               *tmp++ = *src++;
-
-       return dest;
+       return memmove(dest,src,count);
 }
 #endif