ICU-1754 u_parseString() allow the input to be NUL-terminated

X-SVN-Rev: 7906
This commit is contained in:
Markus Scherer 2002-03-07 19:57:00 +00:00
parent efe9c23d9f
commit bae87c5158

View File

@ -216,7 +216,7 @@ u_parseString(const char *s,
/* read one code point */
value=(uint32_t)uprv_strtoul(s, &end, 16);
if(end<=s || (*end!=' ' && *end!='\t' && *end!=';') || value>=0x110000) {
if(end<=s || (*end!=' ' && *end!='\t' && *end!=';' && *end!=0) || value>=0x110000) {
*pErrorCode=U_PARSE_ERROR;
return 0;
}