OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a068630
)
Correct memcpy use
author
Peter S. Mazinger
<ps.m@gmx.net>
Mon, 23 Jan 2006 13:45:00 +0000
(13:45 -0000)
committer
Peter S. Mazinger
<ps.m@gmx.net>
Mon, 23 Jan 2006 13:45:00 +0000
(13:45 -0000)
libc/string/powerpc/memmove.c
patch
|
blob
|
history
diff --git
a/libc/string/powerpc/memmove.c
b/libc/string/powerpc/memmove.c
index
5f21f5f
..
3271611
100644
(file)
--- 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;