X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/2ca993e82fb37b597a3c73ecd1586a139a6579c5..277af7082f210d5fa7e37ce63392ac8568371616:/icuSources/common/locdispnames.cpp diff --git a/icuSources/common/locdispnames.cpp b/icuSources/common/locdispnames.cpp index ff52b10b..cbd1ba94 100644 --- a/icuSources/common/locdispnames.cpp +++ b/icuSources/common/locdispnames.cpp @@ -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;