mirror of
https://github.com/3proxy/3proxy.git
synced 2025-02-23 18:45:40 +08:00
memcpy() replaced with memmove() in bitmap alloc
not used by default
This commit is contained in:
parent
62775da1d5
commit
271d9bb91a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user