ICU-187 don't use aliasing unistr ct

X-SVN-Rev: 355
This commit is contained in:
Alan Liu 1999-12-09 06:26:55 +00:00
parent 013dbc330f
commit 7873a4ffa4

View file

@ -80,8 +80,7 @@ ucal_open( const UChar* zoneID,
else {
int32_t length = (len == -1 ? u_strlen(zoneID) : len);
zone = TimeZone::createTimeZone(UnicodeString((UChar*)zoneID,
length, length));
zone = TimeZone::createTimeZone(UnicodeString((UChar*)zoneID));
}
if(zone == 0) {
*status = U_MEMORY_ALLOCATION_ERROR;