mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-3192 add string termination for UCA rules
X-SVN-Rev: 14638
This commit is contained in:
parent
e9b22210be
commit
dfe8a192e2
1 changed files with 6 additions and 0 deletions
|
@ -498,8 +498,14 @@ parseUCARules(char *tag, uint32_t startline, UErrorCode *status)
|
|||
}
|
||||
}
|
||||
|
||||
/* terminate the string */
|
||||
if(target < targetLimit){
|
||||
*target = 0x0000;
|
||||
}
|
||||
|
||||
result = string_open(bundle, tag, pTarget, (int32_t)(target - pTarget), NULL, status);
|
||||
|
||||
|
||||
ucbuf_close(ucbuf);
|
||||
uprv_free(pTarget);
|
||||
T_FileStream_close(file);
|
||||
|
|
Loading…
Add table
Reference in a new issue