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/io/ustream.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/io/ustdio.c ('k') | source/mkinstalldirs » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/io/ustream.cpp
diff --git a/source/io/ustream.cpp b/source/io/ustream.cpp
index be02dd05427e6b9202a0540d5c50ac50a7abc7ac..8e0087edbe6b2193d3277fd50bfe7511901d6a73 100644
--- a/source/io/ustream.cpp
+++ b/source/io/ustream.cpp
@@ -1,6 +1,8 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
-* Copyright (C) 2001-2014, International Business Machines
+* Copyright (C) 2001-2016, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* FILE NAME : ustream.cpp
@@ -88,7 +90,7 @@ operator>>(STD_ISTREAM& stream, UnicodeString& str)
converter = u_getDefaultConverter(&errorCode);
if(U_SUCCESS(errorCode)) {
UChar *us = uBuffer;
- const UChar *uLimit = uBuffer + sizeof(uBuffer)/sizeof(*uBuffer);
+ const UChar *uLimit = uBuffer + UPRV_LENGTHOF(uBuffer);
const char *s, *sLimit;
char ch;
UChar ch32;
« no previous file with comments | « source/io/ustdio.c ('k') | source/mkinstalldirs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698