]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/locdispnames.cpp
ICU-57165.0.1.tar.gz
[apple/icu.git] / icuSources / common / locdispnames.cpp
index ff52b10b29292ab9c9ebecc774330e101c7e6bd5..cbd1ba94341f07a4ab60f4ea642f076eb17bf576 100644 (file)
@@ -852,7 +852,7 @@ uloc_getDisplayKeywordValue(   const char* locale,
         /* now copy the dispName over if not NULL */
         if(dispName != NULL){
             if(dispNameLen <= destCapacity){
-                uprv_memcpy(dest, dispName, dispNameLen * U_SIZEOF_UCHAR);
+                u_memcpy(dest, dispName, dispNameLen);
                 return u_terminateUChars(dest, destCapacity, dispNameLen, status);
             }else{
                 *status = U_BUFFER_OVERFLOW_ERROR;