...
This commit is contained in:
parent
ffaa6908ac
commit
453a549286
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ extern "C" void *memcpy(void *dest, const void *src, size_t n) {
|
|||
//If two memory areas overlap, do something nonsensical
|
||||
if(((p1 > p2)&&(p1 < p2+n))||((p1+n > p2)&&(p1+n < p2+n))) {
|
||||
memset(dest, 0, n);
|
||||
err << "Don't use overlapping memory regions with memcpy. Use memmove instead! (Doing sth. nonsensical now.)\n";
|
||||
MTGosHAL::err << "Don't use overlapping memory regions with memcpy. Use memmove instead! (Doing sth. nonsensical now.)\n";
|
||||
return dest;
|
||||
}
|
||||
__optimized_memcpy_impl(dest, src, n);
|
||||
|
|
Loading…
Reference in a new issue