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

Unified Diff: source/io/sscanf.c

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/sprintf.c ('k') | source/io/ucln_io.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/io/sscanf.c
diff --git a/source/io/sscanf.c b/source/io/sscanf.c
index ffc850c84f4a762c3219124eebe3e13885ae54e5..31ad8965fc2faeea762827b5f14df054a4e03378 100644
--- a/source/io/sscanf.c
+++ b/source/io/sscanf.c
@@ -1,3 +1,5 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
******************************************************************************
*
@@ -71,7 +73,7 @@ u_vsscanf(const UChar *buffer,
int32_t size = (int32_t)uprv_strlen(patternSpecification) + 1;
/* convert from the default codepage to Unicode */
- if (size >= MAX_UCHAR_BUFFER_SIZE(patBuffer)) {
+ if (size >= (int32_t)MAX_UCHAR_BUFFER_SIZE(patBuffer)) {
pattern = (UChar *)uprv_malloc(size * sizeof(UChar));
if(pattern == 0) {
return 0;
« no previous file with comments | « source/io/sprintf.c ('k') | source/io/ucln_io.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698