]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/intltest/nptrans.cpp
ICU-57149.0.1.tar.gz
[apple/icu.git] / icuSources / test / intltest / nptrans.cpp
index 27345adf62e79c298072be76ac8158742322dc60..e48dedbb4365464816890d675a6a4ca354697efa 100644 (file)
@@ -172,7 +172,7 @@ int32_t NamePrepTransform::map(const UChar* src, int32_t srcLength,
     }
     // check if there is enough room in the output
     if(bufLen < destCapacity){
-        uprv_memcpy(dest,buffer,bufLen*U_SIZEOF_UCHAR);
+        u_memcpy(dest, buffer, bufLen);
     }
 
     return u_terminateUChars(dest, destCapacity, bufLen, &status);
@@ -264,7 +264,7 @@ int32_t NamePrepTransform::process( const UChar* src, int32_t srcLength,
     }
 
     if(b1Len <= destCapacity){
-        uprv_memmove(dest,b1, b1Len*U_SIZEOF_UCHAR);
+        u_memmove(dest, b1, b1Len);
     }
 
 CLEANUP: