From ef6937e69e8ee3f409cf9d460d5ad300a65d5924 Mon Sep 17 00:00:00 2001 From: sschirm Date: Fri, 23 Dec 2016 14:20:36 +0100 Subject: PhysX 3.4 / APEX 1.4 release candidate @21506124 --- PhysX_3.4/Source/PhysXExtensions/src/serialization/Xml/SnXmlImpl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'PhysX_3.4/Source/PhysXExtensions/src/serialization/Xml/SnXmlImpl.h') 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( 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( inMgr->allocate( theLen + 1 ) ); - memcpy( dest, inStr, theLen ); + PxMemCopy( dest, inStr, theLen ); dest[theLen] = 0; return dest; } -- cgit v1.2.3