Browse Source

Correct memcpy use

Peter S. Mazinger 19 years ago
parent
commit
1129cd16b4
1 changed files with 3 additions and 1 deletions
  1. 3 1
      libc/string/powerpc/memmove.c

+ 3 - 1
libc/string/powerpc/memmove.c

@@ -21,6 +21,8 @@
 
 #include <string.h>
 
+libc_hidden_proto(memcpy)
+
 libc_hidden_proto(memmove)
 void *memmove(void *to, const void *from, size_t n)
 {
@@ -29,7 +31,7 @@ void *memmove(void *to, const void *from, size_t n)
 	unsigned char *tmp_from = (unsigned char *)from;
 
 	if (tmp_from >= (unsigned char *)to)
-		return __memcpy(to, from, n);
+		return memcpy(to, from, n);
 	chunks = n / 8;
 	tmp_from += n;
 	tmp_to = to + n;