bcopy() is supposed to be overlap-save.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24525 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-03-22 18:13:42 +00:00
parent 8195a5a835
commit 2754fa8772
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ extern const char *strsignal(int signal);
/* legacy compatibility -- might be removed one day */
#define bcmp(a, b, length) memcmp((a), (b), (length))
#define bcopy(source, dest, length) memcpy((dest), (source), (length))
#define bcopy(source, dest, length) memmove((dest), (source), (length))
#define bzero(buffer, length) memset((buffer), 0, (length))
extern int ffs(int i);

View File

@ -16,6 +16,6 @@ void *bcopy(void const *src, void *dest, size_t count);
void *
bcopy(void const *src, void *dest, size_t count)
{
return memcpy(dest, src, count);
return memmove(dest, src, count);
}