diff options
| author | sschirm <[email protected]> | 2016-12-23 14:20:36 +0100 |
|---|---|---|
| committer | sschirm <[email protected]> | 2016-12-23 14:56:17 +0100 |
| commit | ef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch) | |
| tree | 710426e8daa605551ce3f34b581897011101c30f /PhysX_3.4/Source/PhysXExtensions/src/serialization/Xml/SnXmlImpl.h | |
| parent | Initial commit: (diff) | |
| download | physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.tar.xz physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.zip | |
PhysX 3.4 / APEX 1.4 release candidate @21506124
Diffstat (limited to 'PhysX_3.4/Source/PhysXExtensions/src/serialization/Xml/SnXmlImpl.h')
| -rw-r--r-- | PhysX_3.4/Source/PhysXExtensions/src/serialization/Xml/SnXmlImpl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/PhysX_3.4/Source/PhysXExtensions/src/serialization/Xml/SnXmlImpl.h b/PhysX_3.4/Source/PhysXExtensions/src/serialization/Xml/SnXmlImpl.h index 1718cc86..f296633d 100644 --- a/PhysX_3.4/Source/PhysXExtensions/src/serialization/Xml/SnXmlImpl.h +++ b/PhysX_3.4/Source/PhysXExtensions/src/serialization/Xml/SnXmlImpl.h @@ -31,6 +31,7 @@ #include "SnXmlMemoryPool.h" #include "PsString.h" +#include "foundation/PxMemory.h" namespace physx { namespace Sn { @@ -60,7 +61,7 @@ namespace snXmlImpl { //The memory will never be released by repx. If you want it released, you need to pass in a custom allocator //that tracks all allocations and releases unreleased allocations yourself. char* dest = reinterpret_cast<char* >( inAllocator.allocate( theLen + 1, "Repx::const char*", __FILE__, __LINE__ ) ); - memcpy( dest, inStr, theLen ); + PxMemCopy( dest, inStr, theLen ); dest[theLen] = 0; return dest; } @@ -74,7 +75,7 @@ namespace snXmlImpl { { PxU32 theLen = snXmlImpl::strLen( inStr ); char* dest = reinterpret_cast<char* >( inMgr->allocate( theLen + 1 ) ); - memcpy( dest, inStr, theLen ); + PxMemCopy( dest, inStr, theLen ); dest[theLen] = 0; return dest; } |