ICU-3192 add string termination for UCA rules

X-SVN-Rev: 14638
This commit is contained in:
Ram Viswanadha 2004-03-05 01:39:11 +00:00
parent e9b22210be
commit dfe8a192e2

View file

@ -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);