summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-23 13:45:00 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-23 13:45:00 +0000
commit1129cd16b42185f258fbe8d53a0fb11f1d530f42 (patch)
tree6d63b92ae4133607a0ee01a7320309863546f933 /libc
parenta0686301a0892400130fc45b1fb155cc7d4197a7 (diff)
Correct memcpy use
Diffstat (limited to 'libc')
-rw-r--r--libc/string/powerpc/memmove.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/string/powerpc/memmove.c b/libc/string/powerpc/memmove.c
index 5f21f5f2f..327161116 100644
--- a/libc/string/powerpc/memmove.c
+++ b/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;