make bcopy use memcpy directly master.bak origin/HEAD origin/master
authorHolger Lubitz <hal@duncan.ol.sub.de>
Fri, 27 Jul 2007 23:02:30 +0000 (01:02 +0200)
committerHolger Lubitz <hal@duncan.ol.sub.de>
Fri, 27 Jul 2007 23:02:30 +0000 (01:02 +0200)
src/core/string.c

index 040a778..39d6e77 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 memcpy(dest,src,count);
 }
 #endif