use memcpy() instead of std::memcpy()
This commit is contained in:
@@ -41,7 +41,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include <boost/asio/buffer.hpp>
|
#include <boost/asio/buffer.hpp>
|
||||||
#endif
|
#endif
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <cstring>
|
#include <string.h> // for memcpy
|
||||||
|
|
||||||
namespace libtorrent
|
namespace libtorrent
|
||||||
{
|
{
|
||||||
@@ -127,7 +127,7 @@ namespace libtorrent
|
|||||||
{
|
{
|
||||||
char* insert = allocate_appendix(s);
|
char* insert = allocate_appendix(s);
|
||||||
if (insert == 0) return false;
|
if (insert == 0) return false;
|
||||||
std::memcpy(insert, buf, s);
|
memcpy(insert, buf, s);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user