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

Side by Side Diff: icu52/patches/uloc.patch

Issue 224943002: icu local change part1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: function indentation changed Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « icu52/patches/uconv.patch ('k') | icu52/patches/unihan.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 Index: source/common/uloc.c
2 ===================================================================
3 --- source/common/uloc.c (revision 113138)
4 +++ source/common/uloc.c (working copy)
5 @@ -713,7 +713,7 @@
6 pos++;
7 } else {
8 i = (int32_t)uprv_strlen(equalSign);
9 - while(equalSign[i-1] == ' ') {
10 + while(i && equalSign[i-1] == ' ') {
11 i--;
12 }
13 keywordList[numKeywords].valueLen = i;
14 @@ -1797,7 +1797,7 @@
15 int32_t variantLen = _deleteVariant(variant, uprv_min(variantSi ze, (nameCapacity-len)), variantToCompare, n);
16 len -= variantLen;
17 if (variantLen > 0) {
18 - if (name[len-1] == '_') { /* delete trailing '_' */
19 + if (len > 0 && name[len-1] == '_') { /* delete trailing '_' */
20 --len;
21 }
22 addKeyword = VARIANT_MAP[j].keyword;
23 @@ -1805,7 +1805,7 @@
24 break;
25 }
26 }
27 - if (name[len-1] == '_') { /* delete trailing '_' */
28 + if (len > 0 && len <= nameCapacity && name[len-1] == '_') { /* dele te trailing '_' */
29 --len;
30 }
31 }
32 Index: source/common/uresbund.c
33 ===================================================================
34 --- source/common/uresbund.c (revision 122103)
35 +++ source/common/uresbund.c (working copy)
36 @@ -319,7 +319,7 @@
37 UResourceDataEntry *r = NULL;
38 UResourceDataEntry find;
39 /*int32_t hashValue;*/
40 - char name[96];
41 + char name[100];
42 char aliasName[100] = { 0 };
43 int32_t aliasLen = 0;
44 /*UBool isAlias = FALSE;*/
45 @@ -528,8 +528,8 @@
46 UBool hasChopped = TRUE;
47 UBool usingUSRData = U_USE_USRDATA && ( path == NULL || uprv_strncmp(path,U _ICUDATA_NAME,8) == 0);
48
49 - char name[96];
50 - char usrDataPath[96];
51 + char name[100];
52 + char usrDataPath[100];
53
54 initCache(status);
55
OLDNEW
« no previous file with comments | « icu52/patches/uconv.patch ('k') | icu52/patches/unihan.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698