Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: source/i18n/unesctrn.cpp

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/i18n/unesctrn.h ('k') | source/i18n/uni2name.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « source/i18n/unesctrn.h ('k') | source/i18n/uni2name.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698