memcpy() replaced with memmove() in bitmap alloc

not used by default
This commit is contained in:
z3APA3A 2015-11-29 12:20:35 +03:00
parent 62775da1d5
commit 271d9bb91a

View File

@ -332,7 +332,7 @@ void *myrealloc(void *ptr, size_t size){
if(size <= memsizes[l]) return ptr; if(size <= memsizes[l]) return ptr;
p = myalloc(size); p = myalloc(size);
if(p){ if(p){
memcpy(p,ptr,size); memmove(p,ptr,size);
myfree(ptr); myfree(ptr);
} }
return p; return p;