ICU-8519 Change the keyword buffer size to the capacity.

X-SVN-Rev: 30033
This commit is contained in:
Michael Ow 2011-05-05 03:08:32 +00:00
parent 287daf4131
commit eb51926653
2 changed files with 3 additions and 1 deletions

View File

@ -1708,7 +1708,7 @@ _appendKeywords(ULanguageTag* langtag, char* appendAt, int32_t capacity, UErrorC
AttributeListEntry *attrFirst = NULL;
AttributeListEntry *attr;
const char *key, *type;
char kwdBuf[ULOC_KEYWORDS_CAPACITY];
char kwdBuf[capacity/*ULOC_KEYWORDS_CAPACITY*/];
UBool posixVariant = FALSE;
if (U_FAILURE(*status)) {

View File

@ -5701,6 +5701,8 @@ static const struct {
{"zh-u-ca-chinese-x-u-ca-chinese", "zh@calendar=chinese;x=u-ca-chinese", 30},
{"x-elmer", "@x=elmer", 7},
{"en-US-u-attr1-attr2-ca-gregory", "en_US@attribute=attr1-attr2;calendar=gregorian", 30},
{"de-u-xc-xphonebk-co-phonebk-ca-buddhist-mo-very-lo-extensi-xd-that-de-should-vc-probably-xz-killthebuffer",
"de@calendar=buddhist;collation=phonebook;de=should;lo=extensi;mo=very;vc=probably;xc=xphonebk;xd=that", 88},
{NULL, NULL, 0}
};