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:
parent
8195a5a835
commit
2754fa8772
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user