Index: source/i18n/unesctrn.cpp |
diff --git a/source/i18n/unesctrn.cpp b/source/i18n/unesctrn.cpp |
index c950362c413a7e2be4a000d31571c49d4c3e8649..88a78d6e32558e36a1bfac1e2bb8de5c22043040 100644 |
--- a/source/i18n/unesctrn.cpp |
+++ b/source/i18n/unesctrn.cpp |
@@ -1,3 +1,5 @@ |
+// Copyright (C) 2016 and later: Unicode, Inc. and others. |
+// License & terms of use: http://www.unicode.org/copyright.html |
/* |
********************************************************************** |
* Copyright (c) 2001-2011, International Business Machines |
@@ -85,7 +87,7 @@ static UChar* copySpec(const UChar* spec) { |
UChar *result = (UChar *)uprv_malloc(len*sizeof(UChar)); |
// Check for memory allocation error. |
if (result != NULL) { |
- uprv_memcpy(result, spec, len*sizeof(result[0])); |
+ uprv_memcpy(result, spec, (size_t)len*sizeof(result[0])); |
} |
return result; |
} |