You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2015/05/04 16:20:36 UTC

svn commit: r1677601 - /xerces/c/trunk/src/xercesc/util/XMLString.hpp

Author: amassari
Date: Mon May  4 14:20:36 2015
New Revision: 1677601

URL: http://svn.apache.org/r1677601
Log:
Use memmove to implement XMLString::moveChars (XERCESC-2049)

Modified:
    xerces/c/trunk/src/xercesc/util/XMLString.hpp

Modified: xerces/c/trunk/src/xercesc/util/XMLString.hpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/XMLString.hpp?rev=1677601&r1=1677600&r2=1677601&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/XMLString.hpp (original)
+++ xerces/c/trunk/src/xercesc/util/XMLString.hpp Mon May  4 14:20:36 2015
@@ -1454,7 +1454,7 @@ inline void XMLString::moveChars(
                                 , const XMLCh* const srcStr
                                 , const XMLSize_t    count)
 {
-    memcpy(targetStr, srcStr, count * sizeof(XMLCh));
+    memmove(targetStr, srcStr, count * sizeof(XMLCh));
 }
 
 inline XMLSize_t XMLString::stringLen(const XMLCh* const src)



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org