mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
memcpy() replaced with memmove() in bitmap alloc
not used by default
This commit is contained in:
1 parent
62775da1d5
commit
271d9bb91a
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user