ICU-1200 no need any more to explicitly NUL-terminate after US::extract() to codepage

X-SVN-Rev: 5803
This commit is contained in:
Markus Scherer 2001-09-19 00:06:19 +00:00
parent 9fac14aa96
commit 513ddbcaf2

View File

@ -39,9 +39,7 @@ UnicodeConverter::UnicodeConverter(const char* name, UErrorCode& err)
UnicodeConverter::UnicodeConverter(const UnicodeString& name, UErrorCode& err)
{
char myName[UCNV_MAX_CONVERTER_NAME_LENGTH];
int i;
name.extract(0, i = name.length(), myName);
myName[i]='\0';
name.extract(myName, sizeof(myName), 0, err);
myUnicodeConverter = ucnv_open(myName, &err);
}